C# Class NStub.CSharp.BuildContext.MemberBuildContext

Implementation of a data class used to create new unit tests.
Inheritance: MemberBuildContextBase
Exibir arquivo Open project: Jedzia/NStub Class Usage Examples

Public Methods

Method Description
MemberBuildContext ( CodeNamespace codeNamespace, CodeTypeDeclaration testClassDeclaration, CodeTypeMember typeMember, BuildDataDictionary buildData, ISetupAndTearDownContext setUpTearDownContext, string baseKey ) : System

Initializes a new instance of the MemberBuildContext class.

Protected Methods

Method Description
GetTestMethodInfo ( CodeTypeMember typeMember ) : MethodInfo

Gets the test method info for this test object member.

GetTestObjectClassType ( CodeTypeDeclaration testClassDeclaration ) : Type

Gets the type of the object under test.

Method Details

GetTestMethodInfo() protected method

Gets the test method info for this test object member.
protected GetTestMethodInfo ( CodeTypeMember typeMember ) : MethodInfo
typeMember System.CodeDom.CodeTypeMember The type member that hold the User data of the current test object member.
return System.Reflection.MethodInfo

GetTestObjectClassType() protected method

Gets the type of the object under test.
protected GetTestObjectClassType ( CodeTypeDeclaration testClassDeclaration ) : Type
testClassDeclaration System.CodeDom.CodeTypeDeclaration The test class declaration.
return System.Type

MemberBuildContext() public method

Initializes a new instance of the MemberBuildContext class.
public MemberBuildContext ( CodeNamespace codeNamespace, CodeTypeDeclaration testClassDeclaration, CodeTypeMember typeMember, BuildDataDictionary buildData, ISetupAndTearDownContext setUpTearDownContext, string baseKey ) : System
codeNamespace System.CodeDom.CodeNamespace The code namespace of the test.
testClassDeclaration System.CodeDom.CodeTypeDeclaration The test class declaration.( early testObject ).
typeMember System.CodeDom.CodeTypeMember The current type to create a test method for.
buildData NStub.CSharp.ObjectGeneration.BuildDataDictionary The additional build data lookup.
setUpTearDownContext ISetupAndTearDownContext Contains data specific to SetUp and TearDown test-methods.
baseKey string The base string of the . Is amended by the /// identifier, normalized and fixed by a .
return System