예제 #1
0
        public void IsTestClassReturnsTrueIfClassMatchesClassPreviouslySpecified()
        {
            MockClass c = new MockClass();

            testFramework.AddTestClass(c);

            Assert.IsTrue(testFramework.IsTestClass(c));
        }
예제 #2
0
        public void IsTestClassReturnsTrueForKnownMbUnitFrameworkTestClass()
        {
            clazz.MockProjectContent.ProjectAsIProject.FileName = @"d:\projects\test.vbproj";

            mbUnitTestFramework.AddTestClass(clazz);

            Assert.IsTrue(testFrameworks.IsTestClass(clazz));
        }
예제 #3
0
        public void IsTestClassReturnsTrueForKnownMbUnitFrameworkTestClass()
        {
            MockClass c = MockClass.CreateMockClassWithoutAnyAttributes();

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

            mbUnitTestFramework.AddTestClass(c);

            Assert.IsTrue(testFrameworks.IsTestClass(c));
        }