C# Class NStub.CSharp.BuildContext.MemberBuildContext

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

Méthodes publiques

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

Initializes a new instance of the MemberBuildContext class.

Méthodes protégées

Méthode 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 méthode

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.
Résultat System.Reflection.MethodInfo

GetTestObjectClassType() protected méthode

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

MemberBuildContext() public méthode

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 .
Résultat System