Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old August 23rd, 2011, 05: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?
Reply With Quote
  #2 (permalink)  
Old August 23rd, 2011, 05: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;
Reply With Quote
The Following User Says Thank You to dannyR For This Useful Post:
minhtuanta (December 21st, 2014)
  #3 (permalink)  
Old September 6th, 2013, 02:19 PM
Registered User
Points: 3, Level: 1
Points: 3, Level: 1 Points: 3, Level: 1 Points: 3, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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!
Reply With Quote
  #4 (permalink)  
Old December 21st, 2014, 02:05 PM
Registered User
Points: 3, Level: 1
Points: 3, Level: 1 Points: 3, Level: 1 Points: 3, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2014
Posts: 1
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Thank you. This is my problem too.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 04: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 04: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 05:48 PM



All times are GMT -4. The time now is 03:37 AM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.