public static TaskMessage TaskFinished(RemoteTask task, string message, TaskResult result) { return(new TaskMessage(task, ServerMessage.TaskFinished(message, result))); }
public static TaskMessage TaskOutput(RemoteTask task, string text, TaskOutputType outputType) { return(new TaskMessage(task, ServerMessage.TaskOutput(text, outputType))); }
public static TaskMessage TaskError(RemoteTask task, string message) { return(new TaskMessage(task, ServerMessage.TaskError(message))); }
public static TaskMessage TaskStarting(RemoteTask task) { return(new TaskMessage(task, ServerMessage.TaskStarting())); }
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)); }