Example #1
0
        public void TagsAreReportedInHtmlReport()
        {
            var model = new HtmlReportModel(this.CreateReportModel()) {
                RunDate = new DateTime(2014, 3, 25, 11, 30, 5)
            };

            var sut = new ClassicReportBuilder();
            ReportApprover.Approve(model, sut);
        }
        public void ShouldProduceExpectedHtmlWithExamples()
        {
            Func<FileReportModel> model = () => 
                new HtmlReportModel(new ReportTestData().CreateTwoStoriesEachWithOneFailingScenarioAndOnePassingScenarioWithThreeStepsOfFiveMillisecondsAndEachHasTwoExamples())
                    {
                        RunDate = new DateTime(2014, 3, 25, 11, 30, 5)
                    };

            var sut = new ClassicReportBuilder();
            ReportApprover.Approve(model, sut);
        }
Example #3
0
        public void TagsAreReportedInHtmlReport()
        {
            var story = this.Given(_ => GivenAStep())
                .WithTags("Tag1", "Tag 2")
                .BDDfy();
            Func<FileReportModel> model = () => new HtmlReportModel(new[] { story })
                {
                    RunDate = new DateTime(2014, 3, 25, 11, 30, 5)
                };

            var sut = new ClassicReportBuilder();
            ReportApprover.Approve(model, sut);
        }