Ejemplo n.º 1
0
        public void testMethod()
        {
            // Arrange
            TestSuite suite = new TestSuite();

            // Act
            suite.Add(new DummyTestCase("dummyTestCase"));

            // Assert
            Assert.AreEqual(1, suite.Tests.Count);
        }
Ejemplo n.º 2
0
 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());
 }