private TaskMessage(RemoteTask task, ServerAction serverAction, params object[] parameters) { Assert.NotNull(task); Task = task; ServerAction = serverAction; Message = ServerMessage.Format(serverAction, parameters); }
public void AssertSingleMessage(ServerAction expectedServerAction, params object[] parameters) { var expectedServerMessage = ServerMessage.Format(expectedServerAction, parameters); Assert(() => Xunit.Assert.Single(messages, expectedServerMessage)); }