Unit Test Question
Hi, After years of general front-end development I'm learning MVC, unit testing and test-driven development and am looking to adopt it, and I've enjoyed working through your book.
Here's my question: In the example on pp 414-415, the second test is
Assert.IsNull(result.ViewName);
which fails for me, even with a brand new MVC project following the example in the book. However, I noticed that the following passes:
Assert.AreEqual(result.ViewName, "");
Is this what was intended, or else does Assert have an .IsNullOrWhiteSpace we should be using? Or is it an error with my setup that the original test is failing?
Thanks for your clarification!
John Akin
|