示例#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"));
        }
示例#2
0
        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"));
        }
示例#3
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"));
        }
示例#4
0
        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"));
        }