MSTest vs. NUnit with Visual Studio 2010 & TDD, Redux

About nine months ago, I compared MSTest and NUnit in Visual Studio 2010 and decided that NUnit was the winner when it came to unit testing. My comparisons were based on ease of setup and test code clarity. Back then, where NUnit pulled ahead was in its fluent assertions. These read more like English, and [...]

 
NUnit and the Range Attribute

This short post is a bare bones introduction to NUnit’s Range attribute, and how we can use it to help ensure our tests fully cover desired functionality. Problem Space Introduced in the 2.5 release as part of NUnit’s new parameterized test support, the Range attribute does just what it says: allows you to write a [...]

 
NUnit and the Values Attribute

This quick post is a little ditty about NUnit’s Values attribute, and how we can use it to help ensure our tests fully cover desired functionality.   Problem Space Introduced in the 2.5 release as part of NUnit’s new parameterized test support, the Values attribute allows you to quickly up your test count with just [...]

 
NUnit and the new TestContext Class

With release 2.5.7, NUnit has introduced a new TestContext class that can be used to get information about the tests that are running. No immediate applications of this jump out to me right now, but it’s good to know that the functionality is now available with resorting to hack-like approaches. This post is a bare [...]

 
Visual Studio 2010 NUnit Code Snippets

While I’m a big fan of time saving techniques while coding, I’ve come to realize that I’m not a big fan of platform-specific tools that could very well handicap you when moving to another editor/language/platform once you’ve become reliant on the myriad of shortcuts said tool might provide. Visual Studio 2010’s code snippets stay on [...]

 
NUnit Doh: Setup != TestFixtureSetup

In the continuing trend of realized mistakes this week, we’ll be reviewing another error I made in code earlier this year as it relates to test setup. The title says it all: Setup != TestFixtureSetup.   The Scenario One of our new projects has achieved a high level of coverage that’s been maintained from the [...]

 
MSTest vs. NUnit with Visual Studio 2010 & TDD

All unit testing frameworks share the same core features: test declaration, test execution, and pass/fail notices based on assertions. The shop I work at has been using NUnit for over two years now, with great success. We considered switching to MBUnit a year and a half ago, primarily because of Gallio’s compelling nature, but didn’t [...]

© 2011 Musings of the Bare Bones Coder Suffusion theme by Sayontan Sinha