public void TrySetQuantityID_negativeQuantity() { int number; bool state = OrderValidator.TrySetQuantityID("-4", out number); Assert.IsFalse(state); }
public void TrySetQuantityID_invalidCharacter() { int number; bool state = OrderValidator.TrySetQuantityID("x", out number); Assert.IsFalse(state); }
public void TrySetQuantityID_emptyString() { int number; bool state = OrderValidator.TrySetQuantityID(" ", out number); Assert.IsFalse(state); }
public void TrySetQuantityID_number() { int number; bool state = OrderValidator.TrySetQuantityID("0", out number); Assert.IsTrue(state); Assert.AreEqual(number, 0); }