コード例 #1
0
        protected ReportResult Run(Type fixtureType)
        {
            using (TypeTestDomain domain = new TypeTestDomain(fixtureType))
            {
                domain.Load();
                domain.TestEngine.RunPipes();
                ReportResult result = domain.TestEngine.Report.Result;

                return(result);
            }
        }
コード例 #2
0
        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);
            }
        }