background preloader

Unit Testing

Facebook Twitter

NUnit - Pete on Software. TDD with NUnit If you haven’t read my first NUnit post and aren’t familiar with NUnit or TDD, you might want to check it out here.

NUnit - Pete on Software

Last time we just looked at the basic ways that you make tests and use the test runner to verify their results. In this post, I’d like to examine how you might go about doing true “Red. .net - What C# mocking framework to use. Moles - Isolation framework for .NET. Pex, Automated White box Testing for .NET. The Fakes Framework in Visual Studio 2012 is the next generation of Moles & Stubs.

Pex, Automated White box Testing for .NET

Fakes is different from Moles, however, so moving from Moles to Fakes will require some modifications to your code. A guide for this migration will be available at a later date. Moles will not be developed further, so we recommend to migrate to Fakes. Code Digger for Visual Studio 2013 and 2013 is a lightweight version of Pex that allows you to explore public .NET methods in Portable Libraries directly from the code editor.

Code Digger is the first extension from the Pex and Moles Team at Microsoft Research for Visual Studio 2012 and 2013.