Exemple #1
0
        public void TestCertificateHasExpired()
        {
            Certification cert = new Certification();

            cert.Expiry = DateTime.UtcNow.AddDays(-1);

            Assert.IsTrue(cert.HasExpired());
        }
Exemple #2
0
        public void TestCertificateHasExpiredOnSameDay()
        {
            //If expiry date is today then its considered expired.
            Certification cert = new Certification();

            cert.Expiry = DateTime.UtcNow;

            Assert.IsTrue(cert.HasExpired());
        }