Intro

I really do enjoy working with MSTest to validate the business logic that I write. A decision was made recently by the architect of a project that I’m working on to use NUnit for our unit tests. I have to admit, I was not comfortable with abandoning MSTest. However, configuring NUnit was very straight forward. In addition, I’ve learned that the workflow doesn’t change at all between the two.

Steps

The following are the steps that I took to get up and running with NUnit:

1. Download NUnit from the NUnit website.
2. Download the NUnit Test Project Template.

NUnit_Test_Project

3. In Visual Studio, add a NUnit Test Project.

NUnit_SlnExplorer

4. Display the editor for the default unit test file under the recently created project.

NUnit_Code
5. Run the test and observe results.

NUnit_TestExplorer

Conclusion

In conclusion, I really do enjoy working with MSTest to validate the business logic that I write. A decision was made recently by the architect of a project that I’m working on to use NUnit for our unit tests. I have to admit, I was not comfortable with abandoning MSTest. However, configuring NUnit was very straight forward. In addition, I’ve learned that the workflow doesn’t change at all between the two.

Advertisements