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(); }
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(); }