8 writes to ViewBackColor
System.Windows.Forms.Tests (7)
System\Windows\Forms\PropertyGridTests.cs (7)
3209
ViewBackColor
= value
3216
control.
ViewBackColor
= value;
3234
control.
ViewBackColor
= value;
3242
control.
ViewBackColor
= value;
3257
control.
ViewBackColor
= Color.Red;
3273
control.
ViewBackColor
= Color.Red;
3286
Assert.Throws<ArgumentException>(() => control.
ViewBackColor
= Color.FromArgb(254, 1, 2, 3));
System.Windows.Forms.UI.IntegrationTests (1)
PropertyGridTests.cs (1)
340
_propertyGrid.
ViewBackColor
= Color.Red;
13 references to ViewBackColor
System.Windows.Forms.Tests (11)
System\Windows\Forms\PropertyGridTests.cs (11)
164
Assert.Equal(SystemColors.Window, control.
ViewBackColor
);
3212
Assert.Equal(expected, control.
ViewBackColor
);
3217
Assert.Equal(expected, control.
ViewBackColor
);
3235
Assert.Equal(expected, control.
ViewBackColor
);
3243
Assert.Equal(expected, control.
ViewBackColor
);
3253
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.
ViewBackColor
)];
3258
Assert.Equal(Color.Red, control.
ViewBackColor
);
3262
Assert.Equal(SystemColors.Window, control.
ViewBackColor
);
3269
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.
ViewBackColor
)];
3274
Assert.Equal(Color.Red, control.
ViewBackColor
);
3278
Assert.Equal(SystemColors.Window, control.
ViewBackColor
);
System.Windows.Forms.UI.IntegrationTests (2)
PropertyGridTests.cs (2)
338
_propertyGrid.
ViewBackColor
.Should().Be(SystemColors.Window);
341
_propertyGrid.
ViewBackColor
.Should().Be(Color.Red);