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