public void normal_messages_have_a_false_obsolete_flag_and_no_retirement_reason() { var subject = new TestMessage { Target = "Paul", Subject = "Phil" }; var result = subject.GetDescription(); Assert.That(result.IsObsolete, Is.False); Assert.That(result.RetirementMessage, Is.Null); }
public void can_extract_descriptions_from_templated_log_message() { var subject = new TestMessage { Target = "Paul", Subject = "Phil" }; var result = subject.GetDescription(); Assert.That(result.Actions, Is.EqualTo("The target should be encouraged to say something about the subject's face. Monitor to see that stress levels return to normal")); Assert.That(result.Causes, Is.EqualTo("Happens when stress levels are higher than normal")); Assert.That(result.Description, Is.EqualTo("Denotes that one employee is trying to insult another")); }