protected XElement RunXmlReport() { var consolewrapper = new StubFileWrapper(); var reportfactory = new NUnitXmlReporter(consolewrapper, new ReportLocation("build")); reportfactory.FromSpecContainers(new[] {Context}); return XElement.Parse(consolewrapper.StringCalled); }
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; }