Thursday, April 25, 2013

Quickly test your assemblies using MS Fakes

On hackernews I saw this article coming by about a feature that I didn't know about in VS 2012: adding fake assemblies. I can't go into it too deep - but it's super simple and very powerful. However - I also heard it's quite 'expensive' in terms of processing power which makes your tests a bit slow and that's annoying. So don't start faking everything right away.

On this topic - be sure to listen to the .NET Rocks! Podcast on testing with special guest Hendrik Lösch. AND there is an eBook about this feature available for download. Here are the links:

http://mikefourie.wordpress.com/2013/03/05/creating-the-better-unit-testing-with-microsoft-fakes-ebook/ 



A nice 101 on this feature: http://www.codeproject.com/Articles/582812/Unit-testing-with-Fakes-with-Visual-studio-Premium



And a very interesting podcast on testing on the .NET Rocks! podcast : http://www.dotnetrocks.com/default.aspx?showNum=865


No comments:

Post a Comment