Exemple #1
0
        public void CheckCoupon_CurrentDateLaterThanExpiration_ReturnsFalse(string current, string expiration)
        {
            //act
            var result = Kata.CheckCoupon("124", "124", current, expiration);

            //assert
            Assert.IsFalse(result);
        }
Exemple #2
0
        public void CheckCoupon_ValidCoupon_ReturnsTrue()
        {
            //act
            var result = Kata.CheckCoupon("124", "124", "July 9, 2015", "July 10, 2015");

            //assert
            Assert.IsTrue(result);
        }
Exemple #3
0
        public void CheckCoupon_NonMatchingCodes_ReturnsFalse(string entered, string correct)
        {
            //act
            var result = Kata.CheckCoupon(entered, correct, "July 9, 2015", "July 9, 2015");

            //assert
            Assert.IsFalse(result);
        }