Getting started with NUnit

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.

One Reply to “Getting started with NUnit”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: