Noninvasive Unit Testing in ASP.NET MVC4 – A Microsoft Fakes Deep Dive

added by czyzer
5/18/2012 8:33:21 AM


A lot of today’s unit testing technologies require significant invasive code changes in order to unit test appropriately. In this post Microsoft Fakes in VS11 is used to apply noninvasive testing techniques to test a default "Internet Application" MVC 4 project making absolutely no code changes at all.


5/18/2012 8:33:25 AM
Fakes are a great way to keep implementation details from leaking into your tests. This prevents things like needing certain data to be present in a database just to run tests or other similar situations.