资 源 简 介
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 Except