Ejemplo n.º 1
0
        public void RenderMessage_Good_ReturnCorrectSentence()
        {
            var msg = new ScoreMessageMarkdown();

            msg.Initialize(0.98m, 0.75m, true);
            Assert.That(msg.RenderMessage(), Is.StringContaining("good score"));
        }
Ejemplo n.º 2
0
        public void RenderMessage_Insufficient_ReturnCorrectSentence()
        {
            var msg = new ScoreMessageMarkdown();

            msg.Initialize(0.62m, 0.75m, false);
            Assert.That(msg.RenderMessage(), Is.StringContaining("insufficient score"));
        }