1 write to _descriptor
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\ToolStripCustomTypeDescriptorTests.cs (1)
16_descriptor = new(_toolStrip);
12 references to _descriptor
System.Windows.Forms.Design.Tests (12)
System\Windows\Forms\Design\ToolStripCustomTypeDescriptorTests.cs (12)
24ToolStrip instance = _descriptor.TestAccessor().Dynamic._instance; 30_descriptor.GetPropertyOwner(null).Should().Be(_toolStrip); 35PropertyDescriptorCollection properties1 = _descriptor.GetProperties(); 36PropertyDescriptorCollection properties2 = _descriptor.GetProperties(); 46PropertyDescriptorCollection properties1 = _descriptor.GetProperties(attributes); 47PropertyDescriptorCollection properties2 = _descriptor.GetProperties(attributes); 54_descriptor.GetProperties().Cast<PropertyDescriptor>().Should().NotContain(p => p.Name == "Items"); 61_descriptor.GetProperties(attributes).Cast<PropertyDescriptor>().Should().NotContain(p => p.Name == "Items"); 67_descriptor.GetProperties(); 68_descriptor.GetProperties().Cast<PropertyDescriptor>().Should().NotContain(p => p.Name == "Items"); 75_descriptor.GetProperties(attributes); 76_descriptor.GetProperties(attributes).Cast<PropertyDescriptor>().Should().NotContain(p => p.Name == "Items");