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

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

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

            Assert.AreEqual(result, false);
        }