public void ShouldProduceExpectedMarkdown()
        {
            var model = new FileReportModel(new ReportTestData().CreateMixContainingEachTypeOfOutcome().ToReportModel());
            var sut   = new MarkDownReportBuilder();

            ReportApprover.Approve(model, sut);
        }
Ejemplo n.º 2
0
        public void TagsAreReportedInMarkdownReport()
        {
            var reportModel = this.CreateReportModel();
            var model       = new FileReportModel(reportModel);
            var sut         = new MarkDownReportBuilder();

            ReportApprover.Approve(model, sut);
        }
Ejemplo n.º 3
0
        public void TagsAreReportedInMarkdownReport()
        {
            var story = this.Given(_ => GivenAStep())
                        .WithTags("Tag1", "Tag 2")
                        .BDDfy();
            Func <FileReportModel> model = () => new FileReportModel(new[] { story });
            var sut = new MarkDownReportBuilder();

            ReportApprover.Approve(model, sut);
        }
Ejemplo n.º 4
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);
        }
Ejemplo n.º 5
0
        public void TagsAreReportedInMetroHtmlReport()
        {
            var reportModel = this.CreateReportModel();
            var model       = new HtmlReportModel(reportModel)
            {
                RunDate = new DateTime(2014, 3, 25, 11, 30, 5)
            };

            var sut = new MetroReportBuilder();

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

            var sut = new MetroReportBuilder();

            ReportApprover.Approve(model, sut);
        }
Ejemplo n.º 7
0
        public void ShouldProduceExpectedHtml()
        {
            Func <FileReportModel> model = () =>
                                           new HtmlReportModel(new ReportTestData().CreateMixContainingEachTypeOfOutcome())
            {
                RunDate = new DateTime(2014, 3, 25, 11, 30, 5)
            };

            var sut = new MetroReportBuilder();

            ReportApprover.Approve(model, sut);
        }
        public void ShouldProduceExpectedHtml()
        {
            var model =
                new HtmlReportModel(new ReportTestData().CreateTwoStoriesEachWithOneFailingScenarioAndOnePassingScenarioWithThreeStepsOfFiveMilliseconds()
                                    .ToReportModel())
            {
                RunDate = new DateTime(2014, 3, 25, 11, 30, 5)
            };

            var sut = new ClassicReportBuilder();

            ReportApprover.Approve(model, sut);
        }
Ejemplo n.º 9
0
        public void TagsAreReportedInMetroHtmlReport()
        {
            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 MetroReportBuilder();

            ReportApprover.Approve(model, sut);
        }