Method | Description | |
---|---|---|
CSharpMbUnitCodeGenerator ( IBuildSystem buildSystem, |
Initializes a new instance of the CSharpMbUnitCodeGenerator class based the given CodeNamespace which will output to the given directory.
|
Method | Description | |
---|---|---|
ComposeTestTearDownMethod ( |
Compose additional items of the test TearDown method.
|
|
GenerateAdditional ( ISetupAndTearDownCreationContext context, string testObjectName, |
Generates additional members of the test class.
|
|
GenerateSetupAndTearDownAdditional ( ISetupAndTearDownCreationContext context, string testObjectName, |
Generates the setup and tear down additional members and fields. Override this to customize the behavior of the generator. |
|
RetrieveNamespaceImports ( ) : IEnumerable |
Add namespace imports to the main compilation unit.
|
public CSharpMbUnitCodeGenerator ( IBuildSystem buildSystem, |
||
buildSystem | IBuildSystem | The build system. |
codeNamespace | The code namespace. | |
testBuilders | IMemberBuilderFactory | The test builder repository. |
configuration | ICodeGeneratorParameters | The configuration of the generator. |
return | System |
protected ComposeTestTearDownMethod ( |
||
teardownMethod | A reference to the TearDown method of the test. | |
testObjectMemberField | The member field of the object under test. | |
testObjectName | string | The name of the object under test. |
testObjectType | Type of the object under test(OuT). | |
return | void |
protected GenerateAdditional ( ISetupAndTearDownCreationContext context, string testObjectName, |
||
context | ISetupAndTearDownCreationContext | Contains data specific to SetUp and TearDown test-method generation. |
testObjectName | string | The name of the object under test. |
testObjectMemberField | The member field of the object under test. | |
return | void |
protected GenerateSetupAndTearDownAdditional ( ISetupAndTearDownCreationContext context, string testObjectName, |
||
context | ISetupAndTearDownCreationContext | Contains data specific to SetUp and TearDown test-method generation. |
testObjectName | string | Name of the test object. |
testObjectMemberField | The test object member field. | |
return | void |
protected RetrieveNamespaceImports ( ) : IEnumerable |
||
return | IEnumerable |