Creating Unit Tests for ASP.NET MVC Controllers

In this blog post, we will learn to write unit tests for various MVC controller’s behaviors, such as view’s return types, redirecting to different actions etc. Specifically, we’ll cover writing Unit Tests for: ViewData of the Controller TempData of the Controller ViewBag of the Controller View of the Controller Let’s get started! Creating the MVC … Continue reading Creating Unit Tests for ASP.NET MVC Controllers

TestFixtureSetUp and TestFixtureTearDown in Unit Testing using NUnit: Part 4

We have been learning Unit Testing using NUnit together. Read first three parts of this series below, How to do Unit Test using NUnit : Part 1 Test SetUp and TearDown in Unit Testing using NUnit : Part 2 Ignore Test in Unit Testing using NUnit: Part 3 In Part 2 , we discussed about … Continue reading TestFixtureSetUp and TestFixtureTearDown in Unit Testing using NUnit: Part 4