17 instantiations of DataClass
System.Windows.Forms.Tests (17)
System\Windows\Forms\ListBindingHelperTests.cs (17)
44
yield return new object[] { new
DataClass
{ Property = 1 }, "Property", 1 };
45
yield return new object[] { new
DataClass
{ Property = 1 }, "property", 1 };
51
yield return new object[] { new IEnumerableWrapper(new object[] { new
DataClass
{ Property = 1 } }), "Property", 1 };
79
yield return new object[] { new
DataClass
(), "NoSuchProperty" };
188
yield return new object[] { new
DataClass
(), "noSuchMember", typeof(object) };
189
yield return new object[] { new
DataClass
{ Property = 1 }, "Property", typeof(int) };
190
yield return new object[] { new
DataClass
{ Property = 1 }, "property", typeof(int) };
245
yield return new object[] { new
DataClass
(), new string[] { "Property" } };
259
yield return new object[] { new object[] { new
DataClass
() }, Array.Empty<string>() };
263
yield return new object[] { new IEnumerableWrapper(new object[] { new
DataClass
() }), new string[] { "Property" } };
269
yield return new object[] { new ArrayList { new
DataClass
() }, new string[] { "Property" } };
317
yield return new object[] { new
DataClass
(), TypeDescriptor.GetProperties(typeof(DataClass)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() };
332
yield return new object[] { new
DataClass
(), new PropertyDescriptor[] { null }, Array.Empty<string>() };
445
yield return new object[] { new
DataClass
(), "NoSuchProperty" };
458
Assert.Throws<TargetInvocationException>(() => ListBindingHelper.GetListItemProperties(new
DataClass
(), TypeDescriptor.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray()));
459
Assert.Throws<TargetInvocationException>(() => ListBindingHelper.GetListItemProperties(new
DataClass
(), null, TypeDescriptor.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray()));
460
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)
46
yield return new object[] { typeof(
DataClass
), "NoSuchProperty", typeof(
DataClass
) };
47
yield return new object[] { typeof(
DataClass
), "Property", typeof(
DataClass
) };
50
yield return new object[] { new ListDataClass { ListProperty = [] }, "ListProperty", new List<
DataClass
>() };
246
yield return new object[] { typeof(
DataClass
), new string[] { "Property" } };
249
yield return new object[] { new List<
DataClass
>(), new string[] { "Property" } };
250
yield return new object[] { typeof(IList<
DataClass
>), new string[] { "Property" } };
256
yield return new object[] { Array.Empty<
DataClass
>(), new string[] { "Property" } };
257
yield return new object[] { typeof(
DataClass
[]), new string[] { "Property" } };
275
mockTypedList.Setup(t => t.GetItemProperties(null)).Returns(TypeDescriptor.GetProperties(typeof(
DataClass
)));
315
yield return new object[] { null, TypeDescriptor.GetProperties(typeof(
DataClass
)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() };
317
yield return new object[] { new DataClass(), TypeDescriptor.GetProperties(typeof(
DataClass
)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() };
318
yield return new object[] { typeof(
DataClass
), TypeDescriptor.GetProperties(typeof(
DataClass
)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() };
327
var inner = new PropertyDescriptor[] { TypeDescriptor.GetProperties(typeof(MultiListDataClass))[0], TypeDescriptor.GetProperties(typeof(ListDataClass))[0], TypeDescriptor.GetProperties(typeof(
DataClass
))[0] };
331
yield return new object[] { typeof(
DataClass
), TypeDescriptor.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } };
333
yield return new object[] { typeof(
DataClass
), new PropertyDescriptor[] { null }, Array.Empty<string>() };
357
mockTypedList.Setup(t => t.GetItemProperties(descriptors)).Returns(TypeDescriptor.GetProperties(typeof(
DataClass
)));
444
yield return new object[] { typeof(
DataClass
), "NoSuchProperty" };
492
yield return new object[] { typeof(IEnumerable), new PropertyDescriptor[] { TypeDescriptor.GetProperties(typeof(
DataClass
))[0] }, "Int32" };
677
public List<
DataClass
> ListProperty { get; set; }
699
return TypeDescriptor.GetProperties(typeof(
DataClass
));
719
return TypeDescriptor.GetProperties(typeof(
DataClass
));