5 instantiations of ClassWithStringDefaultProperty
System.Windows.Forms.Design.Tests (5)
System\ComponentModel\Design\ArrayEditorTests.cs (5)
107
yield return new object[] { typeof(int), new
ClassWithStringDefaultProperty
{ DefaultProperty = "CustomName" }, "ClassWithStringDefaultProperty" };
110
yield return new object[] { typeof(ClassWithStringDefaultProperty), new
ClassWithStringDefaultProperty
{ DefaultProperty = "CustomName" }, "CustomName" };
111
yield return new object[] { typeof(ClassWithStringDefaultProperty), new
ClassWithStringDefaultProperty
{ DefaultProperty = string.Empty }, "ClassWithStringDefaultProperty" };
112
yield return new object[] { typeof(ClassWithStringDefaultProperty), new
ClassWithStringDefaultProperty
{ DefaultProperty = null }, "ClassWithStringDefaultProperty" };
115
yield return new object[] { typeof(List<ClassWithStringDefaultProperty>), new
ClassWithStringDefaultProperty
{ DefaultProperty = "CustomName" }, "ClassWithStringDefaultProperty" };
7 references to ClassWithStringDefaultProperty
System.Windows.Forms.Design.Tests (7)
System\ComponentModel\Design\ArrayEditorTests.cs (7)
109
yield return new object[] { typeof(
ClassWithStringDefaultProperty
), null, string.Empty };
110
yield return new object[] { typeof(
ClassWithStringDefaultProperty
), new ClassWithStringDefaultProperty { DefaultProperty = "CustomName" }, "CustomName" };
111
yield return new object[] { typeof(
ClassWithStringDefaultProperty
), new ClassWithStringDefaultProperty { DefaultProperty = string.Empty }, "ClassWithStringDefaultProperty" };
112
yield return new object[] { typeof(
ClassWithStringDefaultProperty
), new ClassWithStringDefaultProperty { DefaultProperty = null }, "ClassWithStringDefaultProperty" };
115
yield return new object[] { typeof(List<
ClassWithStringDefaultProperty
>), new ClassWithStringDefaultProperty { DefaultProperty = "CustomName" }, "ClassWithStringDefaultProperty" };
129
SubArrayEditor editor = new(typeof(
ClassWithStringDefaultProperty
));
300
public override string ToString() => nameof(
ClassWithStringDefaultProperty
);