public void TestOverrides() { Artist artist = new Artist() { Id = TestId, Name = TestName }; Assert.IsNotNull(artist.GetHashCode(), "Expected a hash code"); Assert.IsTrue(artist.Equals(new Artist() { Id = TestId }), "Expected equality"); Assert.IsFalse(artist.Equals(TestId), "Expected inequality"); }
public void HashCodeCanBeRetrievedWhenIdIsNull() { Artist artist = new Artist(); Assert.IsNotNull(artist.GetHashCode(), "Expected a hash code"); }