示例#1
0
        public static void Report(AssemblyResult result, NUnitListener errorListener)
        {
            Console.WriteLine(result.Summary);

            if (errorListener.HasError)
            {
                Assert.Fail(errorListener.FailResult.Exceptions.CompoundStackTrace);
            }
        }
示例#2
0
        public static void Fixie(string fullName)
        {
            var methodGroup = new MethodGroup(fullName);
            var executionProxy = new Fixie.ExecutionProxy();
            var errorListener = new NUnitListener();
            var result = executionProxy.RunMethods(TestAssemblyFixture.Assembly, new Options(), errorListener, new[] { methodGroup });

            Report(result, errorListener);
        }