Пример #1
0
        public void Constructor_InitializesProperties()
        {
            const string thumbprint = "ab53695a51124faada4ca40d776f6ca59afdfa37506df9f5e02782545373f727";

            var record = new CertificateAuditRecord(AuditedCertificateAction.Activate, thumbprint);

            Assert.Equal(AuditedCertificateAction.Activate, record.Action);
            Assert.Equal(thumbprint, record.Thumbprint);
            Assert.Equal("SHA-256", record.HashAlgorithm);
        }
Пример #2
0
        public void GetPath_ReturnsLowercasedThumbprint(string thumbprint)
        {
            var record = new CertificateAuditRecord(AuditedCertificateAction.Add, thumbprint);

            Assert.Equal(thumbprint.ToLowerInvariant(), record.GetPath());
        }