public void RightOperand_ShouldThrowException_WhenInputInvalidMaxRightOperand() { Captcha captcha = new Captcha(1, 1, 1, 10); Assert.Throws(typeof(InvalidRangeException), delegate { captcha.GetRightOperand(); }); }
public void RightOperand_ShouldBeNINE_WhenInputIs9() { Captcha captcha = new Captcha(2, 1, 1, 9); Assert.AreEqual("NINE", captcha.GetRightOperand()); }
public void RightOperand_ShouldBe2_WhenInputIs2() { Captcha captcha = new Captcha(1, 1, 1, 2); Assert.AreEqual("2", captcha.GetRightOperand()); }
public void RightOperand_ShouldBe1_WhenInputIs1() { Captcha captcha = new Captcha(1, 1, 1, 1); Assert.AreEqual("1", captcha.GetRightOperand()); }