Ejemplo n.º 1
0
        public void Subclassed_entities_should_not_equal_entities_of_a_different_type_even_if_the_Id_is_the_same()
        {
            var first = new TestSubEntity { Id = 99 };
            var second = new AnotherSubEntity { Id = 99 };

            first.Equals(second).ShouldBeFalse();
        }
Ejemplo n.º 2
0
        public void Subclassed_entities_should_not_equal_entities_of_a_different_type_even_if_the_Id_is_the_same()
        {
            var first = new TestSubEntity {
                Id = 99
            };
            var second = new AnotherSubEntity {
                Id = 99
            };

            first.Equals(second).ShouldBeFalse();
        }