Exemple #1
0
        public void RightOperand_ShouldThrowException_WhenInputInvalidMaxRightOperand()
        {
            Captcha captcha = new Captcha(1, 1, 1, 10);

            Assert.Throws(typeof(InvalidRangeException),
                          delegate { captcha.GetRightOperand(); });
        }
Exemple #2
0
        public void RightOperand_ShouldBeNINE_WhenInputIs9()
        {
            Captcha captcha = new Captcha(2, 1, 1, 9);

            Assert.AreEqual("NINE", captcha.GetRightOperand());
        }
Exemple #3
0
        public void RightOperand_ShouldBe2_WhenInputIs2()
        {
            Captcha captcha = new Captcha(1, 1, 1, 2);

            Assert.AreEqual("2", captcha.GetRightOperand());
        }
Exemple #4
0
        public void RightOperand_ShouldBe1_WhenInputIs1()
        {
            Captcha captcha = new Captcha(1, 1, 1, 1);

            Assert.AreEqual("1", captcha.GetRightOperand());
        }