public void EqualsOther_ReturnsFalse_WhenIdsAreNotEqual() { var entity = new FakeEntityWithIntId(8); var other = new FakeEntityWithIntId(6); entity.Equals(other).ShouldBeFalse(); }
public void EqualsOther_ReturnsFalse_WhenOtherIsTransient() { var entity = new FakeEntityWithIntId(8); var other = new FakeEntityWithIntId(0); entity.Equals(other).ShouldBeFalse(); }