Tags

NUnit Example Test Case - NUnit Tutorial

In our previous post, we learn how to set up environment for our NUnit Project. In this post, we'll learn how to write our first NUnit Test Case with Example in .NET / C#. We have two projects CustomerOrderService project which is a class library and CustomerOrderService.Tests project which is a NUnit test project. First create two classes Customer and Order and one enum CustomerType in Cus...

Continue Reading

Environment Setup - NUnit Tutorial

There are two steps in configure NUnit project environment: Configure Project with NUnit assemblies Setup TestRunners which show the results of NUnit test cases Configure Project with NUnit assemblies We always creates separate project when creating project for NUnit. According to naming conventions test project name should be [Project Under Test].[Tests]. For example, if we are t...

Continue Reading

Introduction - NUnit Tutorial

NUnit is most popular tool for doing Unit Testing. Before start, we need to learn what is Unit Testing and why NUnit is a popular tool for doing unit testing. Unit Testing Every software is composed of various modules. Each module is composed of various classes. Classes composed of various functions. Function is the smallest unit of code in the application. When we test individual functi...

Continue Reading