public void ReturnFalseGivenTwoEntitiesWithDifferentIntegerId() { var entity1 = new TestIntEntity(1); var entity2 = new TestIntEntity(2); Assert.IsFalse(entity1.Equals(entity2)); }
public void ReturnTrueGivenTwoEntitiesWithSameIntegerId() { var entity1 = new TestIntEntity(1); var entity2 = new TestIntEntity(1); Assert.IsTrue(entity1.Equals(entity2)); }
public void ThrowGivenZeroId() { var entity1 = new TestIntEntity(0); Assert.Fail("Should have thrown an exception."); }