More Info About doubler
Doubler is a code generator (C# and VB.NET) that makes unit testing easier. It is especially useful when working with legacy code. It is a Reflector add-in, a tool already woven into your workflow. It will help you cleave dependencies apart, create test doubles, and write unit tests with little effort and less coding.
Some of the features are:
Recording Generator – Use against an abstract type. It will create a Recording Test Stub. Recorders generated have the following features for each method on the subject type:
o Property named Called of type Boolean that records if the method was called. o Properties for each parameter passed named in the following format Passed of the same type as the parameter. o Property named ReturnValue of the same type as return type of the subject method. If subject method is void this property is not created. When the method is called the this value is returned. o Property named ExceptionToThrow of type Exception. When the method is called if this property is not null the property value is thrown.
Wrapper/Interface Generator – Use against a concrete type. It will create a mirror interface of the subject type and an implementation of the interface that passes all calls to a private instance of the subject type. This can be used to help control dependencies, allowing unit tests to insert a test double in place of the subject (run the Recording Generator on the mirror interface).
Fake Generator - Use against an abstract type. It will create a Fake Object.
Test Generator – Use against a concrete type. It will generate a unit test fixture and test methods for each public method on the test subject. The test methods will contain a start on the unit test.
reference by
http://code.googlep/doubler/