Example #1
0
        public void RunTests()
        {
            var project    = GetProject(FilePath);
            var targetPath = project.GetPropertyValue("TargetPath");

            var eventListener = new TestRunnerListener(
                (i) => TestRunFinishedWithException.Raise(this, i),
                (i) => TestRunFinishedWithResult.Raise(this, i),
                (i, j) => TestRunStarted.Raise(this, i, j),
                (i) => TestSuiteFinished.Raise(this, i),
                (i) => TestSuiteStarted.Raise(this, i),
                (i) => TestFinished.Raise(this, i),
                (i) => TestOutput.Raise(this, i),
                (i) => TestStarted.Raise(this, i),
                (i) => TestUnhandledException.Raise(this, i));
            var testRunner = new TestRunner(targetPath, eventListener);

            testRunner.Run();
        }
Example #2
0
        public void RunTests()
        {
            var project = GetProject(FilePath);
            var targetPath = project.GetPropertyValue("TargetPath");

            var eventListener = new TestRunnerListener(
                (i) => TestRunFinishedWithException.Raise(this, i),
                (i) => TestRunFinishedWithResult.Raise(this, i),
                (i, j) => TestRunStarted.Raise(this, i, j),
                (i) => TestSuiteFinished.Raise(this, i),
                (i) => TestSuiteStarted.Raise(this, i),
                (i) => TestFinished.Raise(this, i),
                (i) => TestOutput.Raise(this, i),
                (i) => TestStarted.Raise(this, i),
                (i) => TestUnhandledException.Raise(this, i));
            var testRunner = new TestRunner(targetPath, eventListener);
            testRunner.Run();
        }