24 instantiations of IEnumerableWrapper
System.Windows.Forms.Tests (24)
System\Windows\Forms\ListBindingHelperTests.cs (24)
49
yield return new object[] { new
IEnumerableWrapper
(new object[] { new DataClass { Property = 1 } }), "Property", 1 };
78
yield return new object[] { new
IEnumerableWrapper
(Array.Empty<object>()), "NoSuchProperty" };
79
yield return new object[] { new
IEnumerableWrapper
(Array.Empty<object>()), "Property" };
158
yield return new object[] { new
IEnumerableWrapper
(null), typeof(object) };
159
yield return new object[] { new
IEnumerableWrapper
(Array.Empty<object>()), typeof(object) };
160
yield return new object[] { new
IEnumerableWrapper
(new int[] { 1 }), typeof(int) };
161
yield return new object[] { new
IEnumerableWrapper
(new object[] { 1 }), typeof(int) };
162
yield return new object[] { new
IEnumerableWrapper
(new object[] { 1, string.Empty }), typeof(int) };
163
yield return new object[] { new
IEnumerableWrapper
(new object[] { null }), typeof(object) };
260
yield return new object[] { new
IEnumerableWrapper
(Array.Empty<object>()), Array.Empty<string>() };
261
yield return new object[] { new
IEnumerableWrapper
(new object[] { new DataClass() }), new string[] { "Property" } };
262
yield return new object[] { new
IEnumerableWrapper
(new object[] { 1 }), new string[] { "Property" } };
263
yield return new object[] { new
IEnumerableWrapper
(new object[] { null }), Array.Empty<string>() };
335
yield return new object[] { new
IEnumerableWrapper
(Array.Empty<object>()), descriptors, new string[] { "Property" } };
336
yield return new object[] { new
IEnumerableWrapper
(new object[] { new ListDataClass() }), descriptors, new string[] { "Property" } };
337
yield return new object[] { new
IEnumerableWrapper
(new object[] { new MultiListDataClass() }), inner.Take(2).ToArray(), new string[] { "Property" } };
338
yield return new object[] { new
IEnumerableWrapper
(new object[] { null }), descriptors, new string[] { "Property" } };
339
yield return new object[] { new
IEnumerableWrapper
(new ListDataClass[] { null }), descriptors, new string[] { "Property" } };
367
yield return new object[] { new
IEnumerableWrapper
(new object[] { new EnumerableITypedListImplementor() }), TypeDescriptor.GetProperties(typeof(EnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() };
375
yield return new object[] { new
IEnumerableWrapper
(new object[] { new NonEnumerableITypedListImplementor() }), TypeDescriptor.GetProperties(typeof(NonEnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() };
388
yield return new object[] { new
IEnumerableWrapper
(new object[] { new ITypedListDataClass() }), TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } };
389
yield return new object[] { new
IEnumerableWrapper
(new object[] { typedListDataClass }), TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } };
401
yield return new object[] { new
IEnumerableWrapper
(new object[] { new ITypedListParent() }), TypeDescriptor.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } };
402
yield return new object[] { new
IEnumerableWrapper
(new object[] { typedListParent }), TypeDescriptor.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } };