Esempio n. 1
0
        public void LeftOperand_ShouldBeONE_WhenInputIs1()
        {
            Captcha captcha = new Captcha(1, 1, 1, 1);

            Assert.AreEqual("ONE", captcha.GetLeftOperand());
        }
Esempio n. 2
0
        public void Operator_ShouldBePlus_WhenInputIs1()
        {
            Captcha captcha = new Captcha(1, 1, 1, 1);

            Assert.AreEqual("+", captcha.GetOperator());
        }
Esempio n. 3
0
        public void LeftOperand_ShouldBeTHREE_WhenInputIs3()
        {
            Captcha captcha = new Captcha(1, 3, 1, 1);

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

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

            Assert.AreEqual("2+ONE", captcha.ToString());
        }
Esempio n. 6
0
        public void LeftOperand_ShouldBeTWO_WhenInputIs2()
        {
            Captcha captcha = new Captcha(1, 2, 1, 1);

            Assert.AreEqual("TWO", captcha.GetLeftOperand());
        }
Esempio n. 7
0
        public void Pattern_ShouldBeONEPlus2_WhenPatternIs1()
        {
            Captcha captcha = new Captcha(1, 1, 1, 2);

            Assert.AreEqual("ONE+2", captcha.ToString());
        }
Esempio n. 8
0
        public void Pattern_ShouldBeTWOPlus1_WhenPatternIs1()
        {
            Captcha captcha = new Captcha(1, 2, 1, 1);

            Assert.AreEqual("TWO+1", captcha.ToString());
        }
Esempio n. 9
0
        public void RightOperand_ShouldBe2_WhenInputIs2()
        {
            Captcha captcha = new Captcha(1, 1, 1, 2);

            Assert.AreEqual("2", captcha.GetRightOperand());
        }
Esempio n. 10
0
        public void RightOperand_ShouldBeNINE_WhenInputIs9()
        {
            Captcha captcha = new Captcha(2, 1, 1, 9);

            Assert.AreEqual("NINE", captcha.GetRightOperand());
        }
Esempio n. 11
0
        public void RightOperand_ShouldBe1_WhenInputIs1()
        {
            Captcha captcha = new Captcha(1, 1, 1, 1);

            Assert.AreEqual("1", captcha.GetRightOperand());
        }
Esempio n. 12
0
        public void Operator_ShouldBeMultiply_WhenInputIs2()
        {
            Captcha captcha = new Captcha(1, 1, 2, 1);

            Assert.AreEqual("*", captcha.GetOperator());
        }
Esempio n. 13
0
        public void Operator_ShouldBeMinus_WhenInputIs3()
        {
            Captcha captcha = new Captcha(1, 1, 3, 1);

            Assert.AreEqual("-", captcha.GetOperator());
        }