Why Unit Test

Unit test give us:

  1. Confidence while writing code.
  2. Discover design flaws early in coding process.
  3. Discover run-time errors early.
  4. Discover logic error.
  5. Provide multiple entry points for debugging.
  6. Documentation of the code.

The best developers in the world regularly make mistakes and that's okay. Even the most experienced developers would never overlook testing though.

An ounce of prevention is worth a pound of cure.

It often shorten the overall time it takes to finish a product by building quality in early in the process.


Three main .NET Frameworks.

  1. MSTest (Visual Studio Unit Testing Framework)
  2. NUnit
  3. xUnit.net

All of this units based on popular unit testing frameworks for Java called jUnit.

xUnit.net is the most popular and the one that has many developers.

Click on Tools > Update and Extension > xUnit.net

results matching ""

    No results matching ""