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)));
 }
Exemple #3
0
 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)));
 }
Exemple #5
0
        public void TaskException(Exception exception)
        {
            string expectedMessage = ServerMessage.TaskException(exception);

            Do(() => Assert.Single(Messages, m => m.StartsWith(expectedMessage)));
        }