17 instantiations of DataClass
System.Windows.Forms.Tests (17)
System\Windows\Forms\ListBindingHelperTests.cs (17)
42
yield return new object[] { new
DataClass
{ Property = 1 }, "Property", 1 };
43
yield return new object[] { new
DataClass
{ Property = 1 }, "property", 1 };
49
yield return new object[] { new IEnumerableWrapper(new object[] { new
DataClass
{ Property = 1 } }), "Property", 1 };
77
yield return new object[] { new
DataClass
(), "NoSuchProperty" };
186
yield return new object[] { new
DataClass
(), "noSuchMember", typeof(object) };
187
yield return new object[] { new
DataClass
{ Property = 1 }, "Property", typeof(int) };
188
yield return new object[] { new
DataClass
{ Property = 1 }, "property", typeof(int) };
243
yield return new object[] { new
DataClass
(), new string[] { "Property" } };
257
yield return new object[] { new object[] { new
DataClass
() }, Array.Empty<string>() };
261
yield return new object[] { new IEnumerableWrapper(new object[] { new
DataClass
() }), new string[] { "Property" } };
267
yield return new object[] { new ArrayList { new
DataClass
() }, new string[] { "Property" } };
315
yield return new object[] { new
DataClass
(), TypeDescriptor.GetProperties(typeof(DataClass)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() };
330
yield return new object[] { new
DataClass
(), new PropertyDescriptor[] { null }, Array.Empty<string>() };
443
yield return new object[] { new
DataClass
(), "NoSuchProperty" };
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()));
24 references to DataClass
System.Windows.Forms.Tests (24)
System\Windows\Forms\ListBindingHelperTests.cs (24)
44
yield return new object[] { typeof(
DataClass
), "NoSuchProperty", typeof(
DataClass
) };
45
yield return new object[] { typeof(
DataClass
), "Property", typeof(
DataClass
) };
48
yield return new object[] { new ListDataClass { ListProperty = [] }, "ListProperty", new List<
DataClass
>() };
244
yield return new object[] { typeof(
DataClass
), new string[] { "Property" } };
247
yield return new object[] { new List<
DataClass
>(), new string[] { "Property" } };
248
yield return new object[] { typeof(IList<
DataClass
>), new string[] { "Property" } };
254
yield return new object[] { Array.Empty<
DataClass
>(), new string[] { "Property" } };
255
yield return new object[] { typeof(
DataClass
[]), new string[] { "Property" } };
273
mockTypedList.Setup(t => t.GetItemProperties(null)).Returns(TypeDescriptor.GetProperties(typeof(
DataClass
)));
313
yield return new object[] { null, TypeDescriptor.GetProperties(typeof(
DataClass
)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() };
315
yield return new object[] { new DataClass(), TypeDescriptor.GetProperties(typeof(
DataClass
)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() };
316
yield return new object[] { typeof(
DataClass
), TypeDescriptor.GetProperties(typeof(
DataClass
)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() };
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" } };
331
yield return new object[] { typeof(
DataClass
), new PropertyDescriptor[] { null }, Array.Empty<string>() };
355
mockTypedList.Setup(t => t.GetItemProperties(descriptors)).Returns(TypeDescriptor.GetProperties(typeof(
DataClass
)));
442
yield return new object[] { typeof(
DataClass
), "NoSuchProperty" };
490
yield return new object[] { typeof(IEnumerable), new PropertyDescriptor[] { TypeDescriptor.GetProperties(typeof(
DataClass
))[0] }, "Int32" };
675
public List<
DataClass
> ListProperty { get; set; }
697
return TypeDescriptor.GetProperties(typeof(
DataClass
));
717
return TypeDescriptor.GetProperties(typeof(
DataClass
));