NStub.CSharp.BuildContext.MemberBuildContext.GetTestObjectClassType C# (CSharp) Method

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
        protected override Type GetTestObjectClassType(CodeTypeDeclaration testClassDeclaration)
        {
            // Get the RuntimeType of the test class.
            return (Type)TestClassDeclaration.UserData[NStubConstants.UserDataClassTypeKey];
        }