public void TestEqualWithSelfAndWithNull()
        {
            var item = new ItemGroup { ID = 1, Name = "1" };
            var item2 = new ItemGroup { ID = 1, Name = "1" };

            Assert.True(item.Equals(item));
            Assert.False(item.Equals(null));
            Assert.True(item.Equals(item2));
        }
        public void TestEqualWithObject()
        {
            var item = new ItemGroup { ID = 1, Name = "1" };
            var item2 = new ItemGroup { ID = 1, Name = "1" };
            var itemGroup = new Item();

            Assert.False(item.Equals((object)null));
            Assert.True(item.Equals((object)item));
            Assert.False(item.Equals((object)itemGroup));
            Assert.True(item.Equals(item2));
        }