Changes for NUNIT 2.5.3
18 Dec 2009, 21:53
henkcb (1 post)
I bought the book pragmatic Unit testing in C# with NUNIT , second edition
I installed NUNIT 2.5.3 ( instead of 2.4) and am trying to run my first unit test.
I get next problems with code on page 18 of the book:
I get 2 errors.
1. it cannot find NUnit.Framework.SyntaxHelpers
Issue 1 : I read that from version 2.5 onwards SyntaxHelpers is included in NUNIT Framework , so I can remove the line using NUnit.Framework.SyntaxHelpers; Please tell me if this is not the case.
Issue 2: Can someone tell where should NUNIT get the CMP-object from? Is there som reference I am missing? Should I do something else for version 2.53?
Thanks in advance for your help?
15 Mar 2010, 20:13
Gareth Stephenson (6 posts)
I know this reply is a couple months late, but better late than never!
It would seem you missed the Cmp class declaration on page 15. You have to write Cmp yourself, it’s not part of any library.
And yes, with NUnit 2.5.3, you can remove the SyntaxHelpers namespace from your using declarations, as it no longer exists within the new version of NUnit.
|You must be logged in to comment|