Exemple #1
0
 public void entities_with_different_id_have_different_hash_code()
 {
     (_entityOne.GetHashCode() == _entityTwo.GetHashCode()).ShouldBe(false);
 }
Exemple #2
0
 public void entities_of_the_same_type_and_id_have_the_same_hash_code()
 {
     (_entityOne.GetHashCode() == _entityTwo.GetHashCode()).ShouldBe(true);
 }
 public void two_transient_entity_hash_codes_are_not_equal()
 {
     (_entityOne.GetHashCode() == _entityTwo.GetHashCode()).ShouldBe(false);
 }