public void LeftOperand_ShouldThrowException_WhenInputInvalidMinLeftOperand() { Captcha captcha = new Captcha(1, 0, 1, 1); Assert.Throws(typeof(InvalidRangeException), delegate { captcha.GetLeftOperand(); }); }
public void LeftOperand_ShouldBeONE_WhenInputIs1() { Captcha captcha = new Captcha(1, 1, 1, 1); Assert.AreEqual("ONE", captcha.GetLeftOperand()); }
public void LeftOperand_ShouldBeTHREE_WhenInputIs3() { Captcha captcha = new Captcha(1, 3, 1, 1); Assert.AreEqual("THREE", captcha.GetLeftOperand()); }
public void LeftOperand_ShouldBeFOUR_WhenInputIs4() { Captcha captcha = new Captcha(1, 4, 1, 1); Assert.AreEqual("FOUR", captcha.GetLeftOperand()); }
public void LeftOperand_ShouldBeTWO_WhenInputIs2() { Captcha captcha = new Captcha(1, 2, 1, 1); Assert.AreEqual("TWO", captcha.GetLeftOperand()); }