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

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

            Assert.AreEqual("+", captcha.GetOperator());
        }
示例#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 Pattern_ShouldBe2PlusOne_WhenPatternIs2()
        {
            Captcha captcha = new Captcha(2, 2, 1, 1);

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

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

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

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

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

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

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

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

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