protected ReportResult Run(Type fixtureType) { using (TypeTestDomain domain = new TypeTestDomain(fixtureType)) { domain.Load(); domain.TestEngine.RunPipes(); ReportResult result = domain.TestEngine.Report.Result; return(result); } }
public void IgnoreTraversesExpectedException() { using (TypeTestDomain domain = new TypeTestDomain(typeof(IgnoreTraverser))) { domain.Load(); domain.TestEngine.RunPipes(); ReportResult result = domain.TestEngine.Report.Result; Console.WriteLine(result.Counter); MbUnit.Core.Reports.XmlReport.RenderToXml(result, Console.Out); Assert.AreEqual(1, result.Counter.RunCount); Assert.AreEqual(1, result.Counter.IgnoreCount); } }