Пример #1
0
        public void CertificateItem_Equals_WithDifferentFingerprint_ReturnsFalse()
        {
            var certificate1 = new CertificateItem("abcdefg", Common.HashAlgorithmName.SHA512);
            var certificate2 = new CertificateItem("stuvxyz", Common.HashAlgorithmName.SHA512);

            certificate1.Equals(certificate2).Should().BeFalse();
        }
Пример #2
0
        public void CertificateItem_Equals_WithSameFingerprint_ReturnsTrue()
        {
            var certificate1 = new CertificateItem("abcdefg", Common.HashAlgorithmName.SHA512);
            var certificate2 = new CertificateItem("abcdefg", Common.HashAlgorithmName.SHA256);

            certificate1.Equals(certificate2).Should().BeTrue();
        }