public void Init() { mockTestClass = MockClass.CreateMockClassWithoutAnyAttributes(); mockTestClass.FullyQualifiedName = "DerivedClass"; testMethod = new MockMethod(mockTestClass, "myTestMethod"); mockTestClass.Methods.Add(testMethod); baseClassTestMethod = new MockMethod(mockTestClass, "myBaseTestMethod"); testFrameworks = new MockRegisteredTestFrameworks(); testFrameworks.AddTestMethod(testMethod); testFrameworks.AddTestMethod(baseClassTestMethod); mockBaseTestClass = MockClass.CreateMockClassWithoutAnyAttributes(); mockBaseTestClass.FullyQualifiedName = "BaseClass"; mockBaseTestClass.Methods.Add(baseClassTestMethod); mockTestClass.AddBaseClass(mockBaseTestClass); testClass = new TestClass(mockTestClass, testFrameworks); }
public void Init() { MockAttribute testAttribute = new MockAttribute("Test"); methodWithTestAttribute = MockMethod.CreateMockMethodWithAttribute(testAttribute); memberNodeForMethodWithTestAttribute = new MockMemberNode(methodWithTestAttribute); testFrameworks = new MockRegisteredTestFrameworks(); testFrameworks.AddTestMethod(methodWithTestAttribute); testableCondition = new TestableCondition(testFrameworks); }