Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
This tutorial is all about coverage. My theory is that all code written should be covered. The reason: you'll have at least 1 test for all lines, and 100% is an easier stat to check for than 80%+.
The tutorial in it's present state has very basic examples. This is so the concepts shown can have more impact than the code itself.
We will be testing a simple [class] (https://github.com/clintcparker/c_sharp_testing/blob/master/FakesTesting/BadIdea.cs) with public and private methods (one of each), that is dependent on the System.Net.Http dll and an external website.
Let's take a look the class to be tested: [Bad Idea] (BadIdea)
[Next Page] (BadIdea)