Base:
property
BackColor
System.Windows.Forms.Control.BackColor
11 writes to BackColor
System.Windows.Forms.Tests (10)
System\Windows\Forms\PropertyGridTests.cs (10)
288
BackColor
= value
295
control.
BackColor
= value;
320
control.
BackColor
= value;
329
control.
BackColor
= value;
354
control.
BackColor
= Color.Red;
359
control.
BackColor
= Color.Red;
364
control.
BackColor
= Color.Empty;
370
control.
BackColor
= Color.Red;
382
control.
BackColor
= Color.Red;
398
control.
BackColor
= Color.Red;
System.Windows.Forms.UI.IntegrationTests (1)
PropertyGridTests.cs (1)
191
_propertyGrid.
BackColor
= Color.Blue;
17 references to BackColor
System.Windows.Forms.Tests (15)
System\Windows\Forms\PropertyGridTests.cs (15)
40
Assert.Equal(Control.DefaultBackColor, control.
BackColor
);
290
Assert.Equal(expected, control.
BackColor
);
296
Assert.Equal(expected, control.
BackColor
);
321
Assert.Equal(expected, control.
BackColor
);
330
Assert.Equal(expected, control.
BackColor
);
355
Assert.Equal(Color.Red, control.
BackColor
);
360
Assert.Equal(Color.Red, control.
BackColor
);
365
Assert.Equal(Control.DefaultBackColor, control.
BackColor
);
371
Assert.Equal(Color.Red, control.
BackColor
);
378
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.
BackColor
)];
383
Assert.Equal(Color.Red, control.
BackColor
);
387
Assert.Equal(Control.DefaultBackColor, control.
BackColor
);
394
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.
BackColor
)];
399
Assert.Equal(Color.Red, control.
BackColor
);
403
Assert.Equal(Control.DefaultBackColor, control.
BackColor
);
System.Windows.Forms.UI.IntegrationTests (2)
PropertyGridTests.cs (2)
189
_propertyGrid.
BackColor
.Should().Be(SystemColors.Control);
192
_propertyGrid.
BackColor
.Should().Be(Color.Blue);