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

            Assert.Equal(item.GetHashCode(), item2.GetHashCode());
        }
        public void TestEqualWithSelfAndWithNull()
        {
            var item = new RootGroup { ID = 1, Name = "1" };
            var item2 = new RootGroup { 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 RootGroup { ID = 1, Name = "1" };
            var item2 = new RootGroup { ID = 1, Name = "1" };
            var itemGroup = new ItemGroup();

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