Exemple #1
0
        public void TrySetQuantityID_negativeQuantity()
        {
            int  number;
            bool state = OrderValidator.TrySetQuantityID("-4", out number);

            Assert.IsFalse(state);
        }
Exemple #2
0
        public void TrySetQuantityID_invalidCharacter()
        {
            int  number;
            bool state = OrderValidator.TrySetQuantityID("x", out number);

            Assert.IsFalse(state);
        }
Exemple #3
0
        public void TrySetQuantityID_emptyString()
        {
            int  number;
            bool state = OrderValidator.TrySetQuantityID(" ", out number);

            Assert.IsFalse(state);
        }
Exemple #4
0
        public void TrySetQuantityID_number()
        {
            int  number;
            bool state = OrderValidator.TrySetQuantityID("0", out number);

            Assert.IsTrue(state);
            Assert.AreEqual(number, 0);
        }