5 instantiations of ClassWithStringDefaultProperty
System.Windows.Forms.Design.Tests (5)
System\ComponentModel\Design\CollectionEditorTests.cs (5)
789
yield return new object[] { typeof(int), new
ClassWithStringDefaultProperty
{ DefaultProperty = "CustomName" }, "ClassWithStringDefaultProperty" };
792
yield return new object[] { typeof(ClassWithStringDefaultProperty), new
ClassWithStringDefaultProperty
{ DefaultProperty = "CustomName" }, "CustomName" };
793
yield return new object[] { typeof(ClassWithStringDefaultProperty), new
ClassWithStringDefaultProperty
{ DefaultProperty = string.Empty }, "ClassWithStringDefaultProperty" };
794
yield return new object[] { typeof(ClassWithStringDefaultProperty), new
ClassWithStringDefaultProperty
{ DefaultProperty = null }, "ClassWithStringDefaultProperty" };
797
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\CollectionEditorTests.cs (7)
791
yield return new object[] { typeof(
ClassWithStringDefaultProperty
), null, string.Empty };
792
yield return new object[] { typeof(
ClassWithStringDefaultProperty
), new ClassWithStringDefaultProperty { DefaultProperty = "CustomName" }, "CustomName" };
793
yield return new object[] { typeof(
ClassWithStringDefaultProperty
), new ClassWithStringDefaultProperty { DefaultProperty = string.Empty }, "ClassWithStringDefaultProperty" };
794
yield return new object[] { typeof(
ClassWithStringDefaultProperty
), new ClassWithStringDefaultProperty { DefaultProperty = null }, "ClassWithStringDefaultProperty" };
797
yield return new object[] { typeof(List<
ClassWithStringDefaultProperty
>), new ClassWithStringDefaultProperty { DefaultProperty = "CustomName" }, "ClassWithStringDefaultProperty" };
811
SubCollectionEditor editor = new(typeof(
ClassWithStringDefaultProperty
));
1127
public override string ToString() => nameof(
ClassWithStringDefaultProperty
);