public void testMethod() { // Arrange TestSuite suite = new TestSuite(); // Act suite.Add(new DummyTestCase("dummyTestCase")); // Assert Assert.AreEqual(1, suite.Tests.Count); }
public void testSuite() { TestSuite suite = new TestSuite(); suite.Add(new WasRun("testMethod")); suite.Add(new WasRun("testBrokenMethod")); suite.Run(result); Assert.AreEqual("2 run, 1 failed", result.Summary()); }