Introduction In this article you will have basic introduction of Unit Test and will learn how to write “Unit Test” in C#. Writing test case is an inevitable part of software testing. Testing software is a real challenge, because there are so many types of test cases that come in so many different shapes and sizes. In order to learn how to write good Unit Test, we must first understand as to what is Unit Test and why do we need it. So lets learn that first.