Exemple #1
0
        public void IsTestMethodReturnsTrueForKnownMbUnitFrameworkTestMethod()
        {
            method.MockDeclaringType.MockProjectContent.ProjectAsIProject.FileName = @"d:\projects\test.vbproj";

            mbUnitTestFramework.AddTestMethod(method);

            Assert.IsTrue(testFrameworks.IsTestMethod(method));
        }
Exemple #2
0
        public void IsTestMethodReturnsTrueIfMethodMatchesMethodPreviouslySpecified()
        {
            MockMethod method = MockMethod.CreateMockMethodWithoutAnyAttributes();

            testFramework.AddTestMethod(method);

            Assert.IsTrue(testFramework.IsTestMethod(method));
        }
Exemple #3
0
        public void IsTestMethodReturnsTrueForKnownMbUnitFrameworkTestMethod()
        {
            MockMethod method = MockMethod.CreateMockMethodWithoutAnyAttributes();

            method.MockDeclaringType.MockProjectContent.ProjectAsIProject.FileName = @"d:\projects\test.vbproj";

            mbUnitTestFramework.AddTestMethod(method);

            Assert.IsTrue(testFrameworks.IsTestMethod(method));
        }