Esempio n. 1
0
 public void IsCertificateValidityPeriodInTheFuture_WithValidityStartInTheFuture_ReturnsTrue()
 {
     using (var certificate = SigningTestUtility.GenerateCertificate(
                "test",
                modifyGenerator: SigningTestUtility.CertificateModificationGeneratorNotYetValidCert))
     {
         Assert.True(CertificateUtility.IsCertificateValidityPeriodInTheFuture(certificate));
     }
 }
Esempio n. 2
0
 public void IsCertificateValidityPeriodInTheFuture_WithValidityStartInThePast_ReturnsFalse()
 {
     using (var certificate = SigningTestUtility.GenerateCertificate(
                "test",
                generator => { }))
     {
         Assert.False(CertificateUtility.IsCertificateValidityPeriodInTheFuture(certificate));
     }
 }