public void Run () { try { testServer = new DotNetCoreTestServer (OnMessageReceived); testServer.Open (); RunDotNetCoreTest (); } catch (Exception ex) { TestResult = UnitTestResult.CreateFailure (ex); IsCompleted = true; } }
public void Start(string projectDirectory) { try { discoveryCompleted = false; testFound = false; tests.Clear(); testServer = new DotNetCoreTestServer(OnMessageReceived); testServer.Open(); StartShutdownTimer(); RunDotNetCoreTest(projectDirectory); IsRunning = true; } catch (Exception ex) { OnError(ex); } }