コード例 #1
0
ファイル: Project.cs プロジェクト: testpulse/Pickle-Studio
        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();
        }
コード例 #2
0
ファイル: Project.cs プロジェクト: testpulse/Pickle-Studio
        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();
        }