5 instantiations of ClassWithDefaultEvent
System.Windows.Forms.Tests (5)
System\Windows\Forms\Design\EventsTabTests.cs (5)
49
yield return new object[] { new
ClassWithDefaultEvent
(), provider, null };
55
yield return new object[] { new
ClassWithDefaultEvent
{ Site = nullMockSite.Object }, provider, null };
61
yield return new object[] { new
ClassWithDefaultEvent
{ Site = invalidMockSite.Object }, provider, null };
73
yield return new object[] { new
ClassWithDefaultEvent
{ Site = mockSite.Object }, provider, descriptor };
119
yield return new object[] { new
ClassWithDefaultEvent
(), e, e?.NewDesigner == mockDesignerHost.Object ? descriptor : null };
5 references to ClassWithDefaultEvent
System.Windows.Forms.Tests (5)
System\Windows\Forms\Design\EventsTabTests.cs (5)
63
PropertyDescriptor descriptor = TypeDescriptor.GetProperties(typeof(
ClassWithDefaultEvent
))[0];
66
.Setup(e => e.GetEventProperty(TypeDescriptor.GetDefaultEvent(typeof(
ClassWithDefaultEvent
))))
99
PropertyDescriptor descriptor = TypeDescriptor.GetProperties(typeof(
ClassWithDefaultEvent
))[0];
102
.Setup(e => e.GetEventProperty(TypeDescriptor.GetDefaultEvent(typeof(
ClassWithDefaultEvent
))))
175
[DefaultEvent(nameof(
ClassWithDefaultEvent
.Event))]