Example #1
0
        public void ValidateOrder_SevenCharacters_ReturnsFalse()
        {
            OrderValidation orderValidation = new OrderValidation();
            Boolean         result          = orderValidation.OrderNumberIsValid("YN50-231");

            Assert.AreEqual(result, false);
        }
Example #2
0
        public void ValidateOrder_Returns_True()
        {
            OrderValidation orderValidation = new OrderValidation();
            Boolean         result          = orderValidation.OrderNumberIsValid("YN50-2315");

            Assert.AreEqual(result, true);
        }
Example #3
0
        public void ValidateOrder_AllNumbers_ReturnsFalse()
        {
            OrderValidation orderValidation = new OrderValidation();
            Boolean         result          = orderValidation.OrderNumberIsValid("1250-2315");

            Assert.AreEqual(result, false);
        }