private HtmlDocument writePreview(string xml) { Test test = TestUtility.ReadTest(xml); var runner = new TestRunner(x => { x.AddFixture<AddressCheckFixture>(); }); return runner.WritePreview(test); }
public void give_it_a_whirl() { var test = new Test("The First Test"); test.Section<ArithmeticFixture>(x => { x.WithStep("StartWith", "starting:100") .WithStep("MultiplyBy", "multiplier:2") .WithStep("TheValueShouldBe", "expected:200") .WithStep("TheValueShouldBe", "expected:300") .WithStep("Subtract", "operand:5") .WithStep("TheValueShouldBe", "expected:195") .WithStep("Adding", "x:10, y:23.5, returnValue:33.5") .WithStep("Throw"); }); var runner = new TestRunner(); HtmlDocument html = runner.WritePreview(test); }
private HtmlDocument writePreview(string xml) { Test test = TestUtility.ReadTest(xml); var runner = new TestRunner(); return runner.WritePreview(test); }