Wrox Programmer Forums
|
BOOK: Professional Test Driven Development with C#: Developing Real World Applications with TDD
This is the forum to discuss the Wrox book Professional Test Driven Development with C#: Developing Real World Applications with TDD by James Bender, Jeff McWherter; ISBN: 978-0-470-64320-4
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Test Driven Development with C#: Developing Real World Applications with TDD section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 23rd, 2011, 04:41 AM
Registered User
 
Join Date: Aug 2011
Posts: 3
Thanks: 0
Thanked 1 Time in 1 Post
Default Problem in Chapter 6 code example

I'm working through the problem set in Chapter 6 and have gotten to the point to run the first unit test. However, instead of seeing a NotImplementedException the test is passing. This is because the NBehave "Because_of" override isn't being called. What exactly is supposed to cause "Because_of" to get called?
 
Old August 23rd, 2011, 04:50 AM
Registered User
 
Join Date: Aug 2011
Posts: 3
Thanks: 0
Thanked 1 Time in 1 Post
Default Answered my own question

In Specification.cs, I had

using NBehave.Spec;

and I should have had

using NBehave.Spec.NUnit;
The Following User Says Thank You to dannyR For This Useful Post:
minhtuanta (December 21st, 2014)
 
Old September 6th, 2013, 01:19 PM
Registered User
 
Join Date: Sep 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs up Thanks for posting the answer

Quote:
Originally Posted by dannyR
I should have had
using NBehave.Spec.NUnit;
Thanks dannyR! This was my problem too. It was very confusing when the tests weren't failing like they should have!
 
Old December 21st, 2014, 02:05 PM
Registered User
 
Join Date: Dec 2014
Posts: 1
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Thank you. This is my problem too.





Similar Threads
Thread Thread Starter Forum Replies Last Post
chapter 18 code problem hennie7863 BOOK: Professional Microsoft SQL Server 2008 Integration Services ISBN: 978-0-470-24795-2 1 September 9th, 2010 03:33 PM
Problem with code on Chapter 14 aargyri BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 3 June 6th, 2006 03:37 PM
Problem with my code chapter 2 ojthecat BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 2 August 2nd, 2004 04:48 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.