Пример #1
0
        public void LeftOperand_ShouldThrowException_WhenInputInvalidMinLeftOperand()
        {
            Captcha captcha = new Captcha(1, 0, 1, 1);

            Assert.Throws(typeof(InvalidRangeException),
                          delegate { captcha.GetLeftOperand(); });
        }
Пример #2
0
        public void LeftOperand_ShouldBeONE_WhenInputIs1()
        {
            Captcha captcha = new Captcha(1, 1, 1, 1);

            Assert.AreEqual("ONE", captcha.GetLeftOperand());
        }
Пример #3
0
        public void LeftOperand_ShouldBeTHREE_WhenInputIs3()
        {
            Captcha captcha = new Captcha(1, 3, 1, 1);

            Assert.AreEqual("THREE", captcha.GetLeftOperand());
        }
Пример #4
0
        public void LeftOperand_ShouldBeFOUR_WhenInputIs4()
        {
            Captcha captcha = new Captcha(1, 4, 1, 1);

            Assert.AreEqual("FOUR", captcha.GetLeftOperand());
        }
Пример #5
0
        public void LeftOperand_ShouldBeTWO_WhenInputIs2()
        {
            Captcha captcha = new Captcha(1, 2, 1, 1);

            Assert.AreEqual("TWO", captcha.GetLeftOperand());
        }