public void TestRunning() { var test = new WasRun("TestMethod"); test.Run(); Assert.IsTrue(test.MethodWasRun); }
public void TestSetUp() { var test = new WasRun("TestMethod"); test.Run(); Assert.IsTrue(test.WasSetUp); }
public void TestFailedResult() { var test = new WasRun("TestBrokenMethod"); test.Run(_result); Assert.AreEqual("1 run, 1 failed", _result.Summary()); }
public void TestTemplateMethod() { var test = new WasRun("TestMethod"); test.Run(_result); Assert.AreEqual("SetUpTestMethodTearDown", test.Log); }