Exemplo n.º 1
0
        public void LeftOperand_ShouldThrowException_WhenInputInvalidMinLeftOperand()
        {
            Captcha captcha = new Captcha(1, 0, 1, 1);

            Assert.Throws(typeof(InvalidRangeException),
                          delegate { captcha.GetLeftOperand(); });
        }
Exemplo n.º 2
0
        public void LeftOperand_ShouldBeONE_WhenInputIs1()
        {
            Captcha captcha = new Captcha(1, 1, 1, 1);

            Assert.AreEqual("ONE", captcha.GetLeftOperand());
        }
Exemplo n.º 3
0
        public void LeftOperand_ShouldBeTHREE_WhenInputIs3()
        {
            Captcha captcha = new Captcha(1, 3, 1, 1);

            Assert.AreEqual("THREE", captcha.GetLeftOperand());
        }
Exemplo n.º 4
0
        public void LeftOperand_ShouldBeFOUR_WhenInputIs4()
        {
            Captcha captcha = new Captcha(1, 4, 1, 1);

            Assert.AreEqual("FOUR", captcha.GetLeftOperand());
        }
Exemplo n.º 5
0
        public void LeftOperand_ShouldBeTWO_WhenInputIs2()
        {
            Captcha captcha = new Captcha(1, 2, 1, 1);

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