NUnit.Engine.ITestRunner.StopRun(bool)

Here are the examples of the csharp api NUnit.Engine.ITestRunner.StopRun(bool) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

19 Source : NUnitTestRunner.cs
with MIT License
from Testura

private void TryStopRunner(global::NUnit.Engine.ITestRunner testRunner)
        {
            // Really hacky but sometimes it fail..
            for (int n = 0; n < 3; n++)
            {
                try
                {
                    testRunner.StopRun(true);
                    testRunner.Unload();
                }
                catch (Exception)
                {
                    Task.Delay(TimeSpan.FromSeconds(1));
                }
            }
        }