コード例 #1
0
        private TaskMessage(RemoteTask task, ServerAction serverAction, params object[] parameters)
        {
            Assert.NotNull(task);

            Task         = task;
            ServerAction = serverAction;
            Message      = ServerMessage.Format(serverAction, parameters);
        }
コード例 #2
0
        public void AssertSingleMessage(ServerAction expectedServerAction, params object[] parameters)
        {
            var expectedServerMessage = ServerMessage.Format(expectedServerAction, parameters);

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