public void TestCertificateHasExpired() { Certification cert = new Certification(); cert.Expiry = DateTime.UtcNow.AddDays(-1); Assert.IsTrue(cert.HasExpired()); }
public void TestCertificateHasExpiredOnSameDay() { //If expiry date is today then its considered expired. Certification cert = new Certification(); cert.Expiry = DateTime.UtcNow; Assert.IsTrue(cert.HasExpired()); }