public void SetUp() { oneTestFixture = new OneTestCase(); mockTestFixture = new MockTestFixture(); EmptyFixture fixture = new EmptyFixture(); noTestSuite = new TestSuite("No Tests"); noTestSuite.Add(fixture); }
public void TestName() { TestSuite suite = new TestSuite("mock suite"); OneTestCase oneTestCase = new OneTestCase(); suite.Add(oneTestCase); IList tests = suite.Tests; TestSuite rootSuite = (TestSuite)tests[0]; NUnit.Core.TestCase testCase = (NUnit.Core.TestCase)rootSuite.Tests[0]; Assert.AreEqual("NUnit.Tests.Core.OneTestCase.TestCase", testCase.FullName); Assert.AreEqual("TestCase", testCase.Name); }