C# Класс NStub.CSharp.BuildContext.MemberBuildContext

Implementation of a data class used to create new unit tests.
Наследование: MemberBuildContextBase
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
MemberBuildContext ( CodeNamespace codeNamespace, CodeTypeDeclaration testClassDeclaration, CodeTypeMember typeMember, BuildDataDictionary buildData, ISetupAndTearDownContext setUpTearDownContext, string baseKey ) : System

Initializes a new instance of the MemberBuildContext class.

Защищенные методы

Метод Описание
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.

Описание методов

GetTestMethodInfo() защищенный Метод

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.
Результат System.Reflection.MethodInfo

GetTestObjectClassType() защищенный Метод

Gets the type of the object under test.
protected GetTestObjectClassType ( CodeTypeDeclaration testClassDeclaration ) : Type
testClassDeclaration System.CodeDom.CodeTypeDeclaration The test class declaration.
Результат System.Type

MemberBuildContext() публичный Метод

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 .
Результат System