Exemplo n.º 1
0
        public void Should_be_able_to_generate_a_divide_captcha_question()
        {
            var question = new CaptchaGeneator()
                           .ConfigureToUse(CaptchaOpperator.Divide);

            question.ToString().ShouldContain(" / ");
            question.ToString().Length.ShouldEqual(5);
        }
Exemplo n.º 2
0
        public void Should_be_able_to_generate_a_add_or_substract_captcha_question()
        {
            var question = new CaptchaGeneator()
                           .ConfigureToUse(CaptchaOpperator.Add)
                           .ConfigureToUse(CaptchaOpperator.Subtract);

            Assert.That((question.ToString().Contains(" + ") || question.ToString().Contains(" - ")), Is.True);

            question.ToString().Length.ShouldEqual(5);
        }