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