Beispiel #1
0
        public void ActionCompletedMessageInitializedCorrectly()
        {
            var msg = ActionMessage.CreateActionCompletedMessage("name", "description", 123);

            Assert.That(msg.Is(ActionMessage.MessageType));
            Assert.That(msg["name"], Is.EqualTo("name"));
            Assert.That(msg["description"], Is.EqualTo("description"));
            Assert.That(msg["phase"], Is.EqualTo(Message.EndPhase));
            Assert.That(msg["duration"], Is.EqualTo(123));
        }