Exemplo n.º 1
0
        public void ValidateInValidCreditCardNumber()
        {
            var testclass = new PaymentDetail();

            testclass.CreditCardNumber = "5199110721507909";
            var actual   = testclass.ValidateCreditCardNumber();
            var expected = false;

            Assert.Equal(expected, actual);
        }
Exemplo n.º 2
0
        public void ValidateValidCreditCardNumber()
        {
            var testclass = new PaymentDetail();

            //To pass this test, KIndly enter a Valid CCN BELOW and set expected to true
            testclass.CreditCardNumber = "";
            var actual   = testclass.ValidateCreditCardNumber();
            var expected = false;

            Assert.Equal(expected, actual);
        }