コード例 #1
0
        private HtmlDocument writePreview(string xml)
        {
            Test test = TestUtility.ReadTest(xml);
            var runner = new TestRunner(x => { x.AddFixture<AddressCheckFixture>(); });

            return runner.WritePreview(test);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        private HtmlDocument writePreview(string xml)
        {
            Test test = TestUtility.ReadTest(xml);
            var runner = new TestRunner();

            return runner.WritePreview(test);
        }