コード例 #1
0
ファイル: EntityWithIdTests.cs プロジェクト: phobos04/tripod
        public void EqualsOther_ReturnsFalse_WhenIdsAreNotEqual()
        {
            var entity = new FakeEntityWithIntId(8);
            var other = new FakeEntityWithIntId(6);

            entity.Equals(other).ShouldBeFalse();
        }
コード例 #2
0
ファイル: EntityWithIdTests.cs プロジェクト: phobos04/tripod
        public void EqualsOther_ReturnsFalse_WhenOtherIsTransient()
        {
            var entity = new FakeEntityWithIntId(8);
            var other = new FakeEntityWithIntId(0);

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