예제 #1
0
        public void get_message_with_substitutions()
        {
            var message = new NotificationMessage(NotificationMessageKeys.SUBSTITUTE_NAME_AND_AGE)
                          .AddSubstitution("Name", "Max")
                          .AddSubstitution("Age", "7");

            message.GetMessage().ShouldEqual("Max is 7 years old");
        }
        public void get_message_with_substitutions()
        {
            var message = new NotificationMessage(NotificationMessageKeys.SUBSTITUTE_NAME_AND_AGE)
                .AddSubstitution("Name", "Max")
                .AddSubstitution("Age", "7");

            message.GetMessage().ShouldEqual("Max is 7 years old");
        }
예제 #3
0
        public void get_message_without_subsitutions()
        {
            var message = new NotificationMessage(NotificationMessageKeys.NO_SUBSTITUTION);

            message.GetMessage().ShouldEqual(NotificationMessageKeys.NO_SUBSTITUTION.ToString());
        }
 public void get_message_without_subsitutions()
 {
     var message = new NotificationMessage(NotificationMessageKeys.NO_SUBSTITUTION);
     message.GetMessage().ShouldEqual(NotificationMessageKeys.NO_SUBSTITUTION.ToString());
 }
예제 #5
0
        public void create_by_string()
        {
            var message = new NotificationMessage("Some message");

            message.GetMessage().ShouldBe("Some message");
        }