Beispiel #1
0
 public static TaskMessage TaskFinished(RemoteTask task, string message, TaskResult result)
 {
     return(new TaskMessage(task, ServerMessage.TaskFinished(message, result)));
 }
Beispiel #2
0
 public static TaskMessage TaskOutput(RemoteTask task, string text, TaskOutputType outputType)
 {
     return(new TaskMessage(task, ServerMessage.TaskOutput(text, outputType)));
 }
Beispiel #3
0
 public static TaskMessage TaskError(RemoteTask task, string message)
 {
     return(new TaskMessage(task, ServerMessage.TaskError(message)));
 }
Beispiel #4
0
 public static TaskMessage TaskStarting(RemoteTask task)
 {
     return(new TaskMessage(task, ServerMessage.TaskStarting()));
 }
Beispiel #5
0
 public static TaskMessage TaskDiscovered(RemoteTask task)
 {
     return(new TaskMessage(task, ServerMessage.TaskDiscovered()));
 }
        public void AssertSingleMessage(ServerAction expectedServerAction, params object[] parameters)
        {
            var expectedServerMessage = ServerMessage.Format(expectedServerAction, parameters);

            Assert(() => Xunit.Assert.Single(messages, expectedServerMessage));
        }