Unit testing is validation and verification methodology where the developers test the individual units of source code. In this tutorial we will try to understand how we can do unit testing using NUNIT framework. This tutorial we will try to understand the 5 important steps to do unit testing using NUNIT.
public class clsInvoiceCalculation { public int CalculateCost(int intPerProductCost, int intNumberOfProducts) { return intPerProductCost * intNumberOfProducts; } }
using NUnit.Framework; using Invoice;
Mastering Unit Testing