Exemplo n.º 1
0
        public void ActionFailedMessageInitializedCorrectly()
        {
            var ex  = new Exception("exceptionText");
            var msg = ActionMessage.CreateActionFailedMessage("name", "description", ex, 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));
            Assert.That(msg.HasErrors());
        }