protected override Type GetTestObjectClassType(CodeTypeDeclaration testClassDeclaration) { // Get the RuntimeType of the test class. return (Type)TestClassDeclaration.UserData[NStubConstants.UserDataClassTypeKey]; }