Example #1
0
        public void should_return_success_when_all_tests_pass()
        {
            var methodResolver = new TestMethodResolver(new FakeAssemblyResolver());
            var runner = new TestRunner(methodResolver,_outputWriter, new TestClassInstanceProvider());
            var testMethod = "Victoria.Test.Tests.Unit.AssertTests.TrueThrows";
            var result = runner.Execute(testMethod);

            Assert.True(result);
        }
Example #2
0
        private void RunIntegrationTests()
        {
            var runner = new TestRunner(
                new TestMethodResolver(new StaticAssemblyResolver(GetType())),
                new DebugOutputWriter(),
                new UITestClassInstanceProvider(RootFrame)
            );

            ThreadPool.QueueUserWorkItem((d) => runner.Execute(string.Empty)); //execute all tests
        }