Exemplo n.º 1
0
        private TaskMessage(RemoteTask task, ServerAction serverAction, params object[] parameters)
        {
            Assert.NotNull(task);

            Task         = task;
            ServerAction = serverAction;
            Message      = ServerMessage.Format(serverAction, parameters);
        }
Exemplo n.º 2
0
        public void AssertSingleMessage(ServerAction expectedServerAction, params object[] parameters)
        {
            var expectedServerMessage = ServerMessage.Format(expectedServerAction, parameters);

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