public void ValueReadingExecutorCreatesNotCancelledResult() { var timeout = TimeSpan.FromSeconds(10); var exitCode = 0; var basicCommand = $"{TestUtils.ReturnExitCodeApplicationCall} {exitCode}"; var instance = new InstanceFile(""); var timer = new Stopwatch(); timer.Start(); var commandExecutor = new ValueReadingExecutor(new Dictionary <string, IAllele>(), basicCommand, timeout); var runner = commandExecutor.Run(instance, this._cancellationTokenSource.Token); runner.Wait(); timer.Stop(); runner.Result.ShouldNotBeNull(); runner.Result.IsCancelled.ShouldBeFalse(); runner.Result.Runtime.ShouldBeLessThan(timeout); timer.Elapsed.ShouldBeLessThan(timeout); }