예제 #1
0
 protected XElement RunXmlReport()
 {
     var consolewrapper = new StubFileWrapper();
     var reportfactory = new NUnitXmlReporter(consolewrapper, new ReportLocation("build"));
     reportfactory.FromSpecContainers(new[] {Context});
     return XElement.Parse(consolewrapper.StringCalled);
 }
예제 #2
0
 public override void SetUp()
 {
     base.SetUp();
     Context = IntializeSpec(RuleStatus.Passed);
      consolewrapper = new StubFileWrapper();
     var reportfactory = new HtmlReporter(consolewrapper, new ReportLocation("dir"));
     reportfactory.FromSpecContainers(new[]{Context});
     results = consolewrapper.StringCalled;
 }