Пример #1
0
        protected override IHtmlReport EstablishContext()
        {
            publisher = Dependency <IReportPublisher>();

            var fixture           = Stub <ITestContext>();
            var testSpecification = Stub <ITestSpecification>();


            fixture.is_told_to(f => f.Name).Return("when_a_blah_blah");
            testSpecification.is_told_to(t => t.Name).Return("should_do_some_stuff");

            var context = new HtmlReport(publisher);

            context.Add(fixture, new List <ITestSpecification> {
                testSpecification
            });
            return(context);
        }
Пример #2
0
 public void PublishGradeReports(IReportPublisher publisher)
 {
 }
Пример #3
0
 public HtmlReport(IReportPublisher publisher)
 {
     this.publisher = publisher;
     builder        = new StringBuilder();
     builder.Append("<html><head><title>Specifications Document</title></head><body>");
 }