public void RenderMessage_Good_ReturnCorrectSentence() { var msg = new ScoreMessageMarkdown(); msg.Initialize(0.98m, 0.75m, true); Assert.That(msg.RenderMessage(), Is.StringContaining("good score")); }
public void RenderActual_Threshold_ReturnCorrectSentence() { var msg = new ScoreMessageMarkdown(); msg.Initialize(0.62m, 0.75m, false); Assert.That(msg.RenderActual(), Is.EqualTo("score is 0.62")); }
public void RenderMessage_Insufficient_ReturnCorrectSentence() { var msg = new ScoreMessageMarkdown(); msg.Initialize(0.62m, 0.75m, false); Assert.That(msg.RenderMessage(), Is.StringContaining("insufficient score")); }
public void RenderExpected_Threshold_ReturnCorrectSentence() { var msg = new ScoreMessageMarkdown(); msg.Initialize(0.62m, 0.75m, false); Assert.That(msg.RenderExpected(), Is.EqualTo("threshold was set to 0.75")); }