8 instantiations of ListDataClass
System.Windows.Forms.Tests (8)
System\Windows\Forms\ListBindingHelperTests.cs (8)
47
yield return new object[] { new
ListDataClass
(), "ListProperty", null };
48
yield return new object[] { new
ListDataClass
{ ListProperty = [] }, "ListProperty", new List<DataClass>() };
318
yield return new object[] { new
ListDataClass
(), TypeDescriptor.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } };
319
yield return new object[] { new
ListDataClass
() { ListProperty = [new()] }, TypeDescriptor.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } };
336
yield return new object[] { new IEnumerableWrapper(new object[] { new
ListDataClass
() }), descriptors, new string[] { "Property" } };
343
yield return new object[] { new ArrayList { new
ListDataClass
() }, descriptors, new string[] { "Property" } };
423
yield return new object[] { new
ListDataClass
(), "ListProperty", null, new string[] { "Property" } };
424
yield return new object[] { new
ListDataClass
(), "listproperty", Array.Empty<PropertyDescriptor>(), new string[] { "Property" } };
16 references to ListDataClass
System.Windows.Forms.Tests (16)
System\Windows\Forms\ListBindingHelperTests.cs (16)
318
yield return new object[] { new ListDataClass(), TypeDescriptor.GetProperties(typeof(
ListDataClass
)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } };
319
yield return new object[] { new ListDataClass() { ListProperty = [new()] }, TypeDescriptor.GetProperties(typeof(
ListDataClass
)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } };
320
yield return new object[] { typeof(
ListDataClass
), TypeDescriptor.GetProperties(typeof(
ListDataClass
)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } };
325
var inner = new PropertyDescriptor[] { TypeDescriptor.GetProperties(typeof(MultiListDataClass))[0], TypeDescriptor.GetProperties(typeof(
ListDataClass
))[0], TypeDescriptor.GetProperties(typeof(DataClass))[0] };
329
yield return new object[] { typeof(DataClass), TypeDescriptor.GetProperties(typeof(
ListDataClass
)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } };
334
PropertyDescriptor[] descriptors = TypeDescriptor.GetProperties(typeof(
ListDataClass
)).Cast<PropertyDescriptor>().ToArray();
339
yield return new object[] { new IEnumerableWrapper(new
ListDataClass
[] { null }), descriptors, new string[] { "Property" } };
425
yield return new object[] { new MultiListDataClass(), "ParentListProperty", TypeDescriptor.GetProperties(typeof(
ListDataClass
)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } };
426
yield return new object[] { typeof(
ListDataClass
), "ListProperty", null, new string[] { "Property" } };
427
yield return new object[] { typeof(
ListDataClass
), "listproperty", Array.Empty<PropertyDescriptor>(), new string[] { "Property" } };
428
yield return new object[] { typeof(MultiListDataClass), "ParentListProperty", TypeDescriptor.GetProperties(typeof(
ListDataClass
)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } };
456
Assert.Throws<TargetInvocationException>(() => ListBindingHelper.GetListItemProperties(new DataClass(), TypeDescriptor.GetProperties(typeof(
ListDataClass
)).Cast<PropertyDescriptor>().ToArray()));
457
Assert.Throws<TargetInvocationException>(() => ListBindingHelper.GetListItemProperties(new DataClass(), null, TypeDescriptor.GetProperties(typeof(
ListDataClass
)).Cast<PropertyDescriptor>().ToArray()));
458
Assert.Throws<TargetInvocationException>(() => ListBindingHelper.GetListItemProperties(new DataClass(), string.Empty, TypeDescriptor.GetProperties(typeof(
ListDataClass
)).Cast<PropertyDescriptor>().ToArray()));
680
public List<
ListDataClass
> ParentListProperty { get; set; }