예제 #1
0
        public void TestPassed(string name, string type, string method, double duration, string output)
        {
            var state = CurrentState;

            PropogateDuration(state, TimeSpan.FromSeconds(duration));

            // We can only assume that it's stdout
            if (!string.IsNullOrEmpty(output))
            {
                server.TaskOutput(state.Task, output, TaskOutputType.STDOUT);
            }

            state.SetPassed();
        }
        public void TestPassed(string name, string type, string method, double duration, string output)
        {
            var state = CurrentState;

            // We can only assume that it's stdout
            if (!string.IsNullOrEmpty(output))
            {
                server.TaskOutput(state.Task, output, TaskOutputType.STDOUT);
            }

            state.Duration = TimeSpan.FromSeconds(duration);

            // Do nothing - we've already set up the defaults for success, and don't overwrite an error
            // TaskFinished will tell ReSharper the task is done
        }