public void ValidateExpiryDateOnCreditCard() { var testclass = new PaymentDetail(); testclass.ExpirationDate = new DateTime(2021, 4, 24); var actual = testclass.ValidateExpirationDate(); var expected = true; Assert.Equal(expected, actual); }