Code Contracts: Unit testing contracted code

added by gpeipman
5/6/2010 2:59:06 AM

1 Kicks, 65 Views

Code contracts and unit tests are not replacements for each other. They both have different purpose and different nature. It does not matter if you are using code contracts or not – you still have to write tests for your code. In this posting I will show you how to unit test code with contracts.