Esempio n. 1
0
 public void testResultSummary()
 {
     WasRun test = new WasRun("testMethod");
     test.Run(result);
     Assert.AreEqual("1 run, 0 failed", result.Summary());
 }
Esempio n. 2
0
 public void testTemplateMethod()
 {
     WasRun test = new WasRun("testMethod");
     test.Run(result);
     Assert.AreEqual("setUp testMethod tearDown ", test.log);
 }
Esempio n. 3
0
 public void testFailedResult()
 {
     WasRun test = new WasRun("testBrokenMethod");
     test.Run(result);
     Assert.AreEqual("1 run, 1 failed", result.Summary());
 }