コード例 #1
0
		public void Run ()
		{
			try {
				testServer = new DotNetCoreTestServer (OnMessageReceived);
				testServer.Open ();

				RunDotNetCoreTest ();
			} catch (Exception ex) {
				TestResult = UnitTestResult.CreateFailure (ex);
				IsCompleted = true;
			}
		}
コード例 #2
0
        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);
            }
        }