public void AuthorItem_Equals_WithDifferentName_ReturnsFalse() { var author1 = new AuthorItem("authorName", new CertificateItem("abcdefg", Common.HashAlgorithmName.SHA512)); var author2 = new AuthorItem("otherAuthorName", new CertificateItem("abcdefg", Common.HashAlgorithmName.SHA512)); author1.Equals(author2).Should().BeFalse(); }
public void AuthorItem_Equals_WithSameName_ReturnsTrue() { var author1 = new AuthorItem("authorName", new CertificateItem("abcdefg", Common.HashAlgorithmName.SHA512)); var author2 = new AuthorItem("authorName", new CertificateItem("xyz", Common.HashAlgorithmName.SHA512)); author1.Equals(author2).Should().BeTrue(); }