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