Esempio n. 1
0
        public void IsTestMethodReturnsTrueIfMethodMatchesMethodPreviouslySpecified()
        {
            MockMethod method = MockMethod.CreateMockMethodWithoutAnyAttributes();

            testFramework.AddTestMember(method);

            Assert.IsTrue(testFramework.IsTestMember(method));
        }
        public void IsTestMethodReturnsTrueIfMethodMatchesMethodPreviouslySpecified()
        {
            MockMethod method = MockMethod.CreateResolvedMethod();

            testFramework.AddTestMember(method);

            Assert.IsTrue(testFramework.IsTestMember(method));
        }
Esempio n. 3
0
        public void IsTestMember_KnownMbUnitFrameworkTestMethod_ReturnsTrue()
        {
            MockMethod method  = MockMethod.CreateMockMethodWithoutAnyAttributes();
            IProject   project = method.MockDeclaringType.Project;

            mbUnitTestFramework.AddTestProject(project);
            method.MockDeclaringType.MockProjectContent.ProjectAsIProject.FileName = @"d:\projects\test.vbproj";

            mbUnitTestFramework.AddTestMember(method);

            bool result = testFrameworks.IsTestMember(method);

            Assert.IsTrue(result);
        }