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

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

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

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

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