public void SetUpFixture()
        {
            mockClass  = new MockClass("Tests.MyTestFixture");
            mockMethod = new MockMethod("MyMethod");

            mockMethodRegion      = new DomRegion(0, 0, 0, 10);
            mockMethod.Region     = mockMethodRegion;
            mockMethodBodyRegion  = new DomRegion(1, 0, 2, 5);
            mockMethod.BodyRegion = mockMethodBodyRegion;
            mockMethod.Modifiers  = ModifierEnum.Public;

            MockClass returnTypeClass = new MockClass("Tests.ReturnType");

            returnType            = new DefaultReturnType(returnTypeClass);
            mockMethod.ReturnType = returnType;

            baseTestMethod = new BaseTestMethod(mockClass, mockMethod);
        }
        public void Init()
        {
            baseClassMethod = MockMethod.CreateMockMethodWithoutAnyAttributes();
            baseClassMethod.DeclaringType.CompilationUnit.FileName = @"c:\projects\mytest.cs";

            MockClass derivedClass = MockClass.CreateMockClassWithoutAnyAttributes();

            derivedClass.CompilationUnit.FileName = @"d:\projects\myderivedtestclass.cs";

            int methodBeginLine   = 3;           // 1 based.
            int methodBeginColumn = 6;           // 1 based.

            baseClassMethod.Region = new DomRegion(methodBeginLine, methodBeginColumn);

            BaseTestMethod baseTestMethod = new BaseTestMethod(derivedClass, baseClassMethod);

            treeView = new MockTestTreeView();
            treeView.SelectedMethod     = baseTestMethod;
            fileService                 = new MockFileService();
            gotoDefinitionCommand       = new GotoDefinitionCommand(fileService);
            gotoDefinitionCommand.Owner = treeView;
            gotoDefinitionCommand.Run();
        }
        public void TestClassHasBaseClassTestMethod()
        {
            BaseTestMethod baseTestMethod = testClass.TestMethods[1].Method as BaseTestMethod;

            Assert.AreEqual(baseClassTestMethod, baseTestMethod.Method);
        }