Wednesday September 28th

Tuesday September 27th

0 Kicks

Shim constructors to isolate “Future Objects”

This is a third part of a series of articles about the new Unit Test isolating capabilities in Visual Studio 2012. In this post I show how you can isolate creation of objects, to "inject" test double (mock or stub) when the System Under Test directly calls Constructor of objects they depends on and they do not expose any IoC or DI pattern to inject Test Double during test. Thanks to Fakes assembly you can "override" constructor of objects during unit tests.


Commenting on Stories is limited for now and will open up to those recommended by the community. Learn how
Loading DotNetKicks...
brought to you by the Kicks Network