Exemplo n.º 1
0
        public void null_properties_are_replaced_with_special_placeholders()
        {
            var subject = new MismatchMessage {
                Target = null
            };
            var result = subject.ToString();

            Assert.That(result, Is.EqualTo("<null> is ok, but {?Subject} is not somthing in this message"));
        }
Exemplo n.º 2
0
        public void template_messages_that_dont_match_class_properties_get_a_placeholder()
        {
            var subject = new MismatchMessage {
                Target = "The target property"
            };
            var result = subject.ToString();

            Assert.That(result, Is.EqualTo("The target property is ok, but {?Subject} is not somthing in this message"));
        }