C# Unit Test Tutorial

The goal of Unit Testing is to write test code that tests production code. Unit Testing can be an amazing driver of quality or an expensive epic fail. Here are some best practices to make sure it the former, a driver of quality, instead of the latter, an epic fail.

This is going to be a work in progress and I will post articles as I write them…

C# Unit Testing – Basic

  1. What is Unit Test?
  2. C# Unit Test Best Practices and Guidelines

C# Unit Testing – Advanced

  1. Why Interface-based design leads to good Unit Tests?
  2. What is Mocking and how do you Mock in C# Unit Tests?
  3. Unit Testing code that touches the system

C# Unit Test Examples

  1. How to write your first Unit Test with Visual Studio
  2. Unit Testing with a fake implementation of an Interface
  3. Unit Testing Registry access with RhinoMocks and SystemWrapper
  4. Unit Testing File IO with RhinoMocks and SystemWrapper
Other References to learn Unit Testing

Blog at WordPress.com.

%d bloggers like this: