public void TestGetCompositeObjects()
 {
     var testReflect = new ReflectUtil<string>();
     ISet<string> set = testReflect.GetCompositeObjects(new TestClass(0, new HashSet<string>() { "1" }, new string[] {"2"}));
     Assert.NotNull(set);
     CollectionAssert.IsNotEmpty(set);
     CollectionAssert.AllItemsAreNotNull(set);
     CollectionAssert.AllItemsAreInstancesOfType(set, typeof(string));
     Assert.AreEqual(2, set.Count);
     CollectionAssert.Contains(set, "1");
     CollectionAssert.Contains(set, "2");
 }
        public void TestGetCompositeObjectsIgnore()
        {
            PropertyInfo propertyInfo = typeof(TestClass).GetProperty("Field2");

            var testReflect = new ReflectUtil<string>();

            ISet<string> set = testReflect.GetCompositeObjects(new TestClass(0, new HashSet<string>() { "1" }, new string[] {"2"}), propertyInfo);
            Assert.NotNull(set);
            CollectionAssert.IsNotEmpty(set);
            CollectionAssert.AllItemsAreNotNull(set);
            CollectionAssert.AllItemsAreInstancesOfType(set, typeof(string));
            Assert.AreEqual(1, set.Count);
            CollectionAssert.Contains(set, "1");
        }