Exemple #1
0
 public void HashCodeCanBeRetrievedWhenIdIsNull()
 {
     Genre genre = new Genre();
     Assert.IsNotNull(genre.GetHashCode(), "Expected a hash code");
 }
Exemple #2
0
 public void TestOverrides()
 {
     Genre genre = new Genre() { Id = TestId, Name = TestName };
     Assert.IsNotNull(genre.GetHashCode(), "Expected a hash code");
     Assert.IsFalse(genre.Equals(TestId), "Expected inequality");
 }