private static TaskMessage TaskException(RemoteTask task, string exceptionText) { return(new TaskMessage(task, ServerMessage.TaskException(exceptionText))); }
public static TaskMessage TaskException(RemoteTask task, Exception exception) { return(new TaskMessage(task, ServerMessage.TaskException(exception))); }
public void TaskException(params TaskException[] exception) { Do(() => Assert.Single(Messages, ServerMessage.TaskException(exception))); }
public static TaskMessage TaskException(RemoteTask task, IEnumerable <TaskException> exceptions) { return(new TaskMessage(task, ServerMessage.TaskException(exceptions))); }
public void TaskException(Exception exception) { string expectedMessage = ServerMessage.TaskException(exception); Do(() => Assert.Single(Messages, m => m.StartsWith(expectedMessage))); }