Exemple #1
0
        public void EqualsOther_ReturnsFalse_WhenIdsAreNotEqual()
        {
            var entity = new FakeEntityWithIntId(8);
            var other  = new FakeEntityWithIntId(6);

            entity.Equals(other).ShouldBeFalse();
        }
Exemple #2
0
        public void EqualsOther_ReturnsFalse_WhenOtherIsTransient()
        {
            var entity = new FakeEntityWithIntId(8);
            var other  = new FakeEntityWithIntId(0);

            entity.Equals(other).ShouldBeFalse();
        }