8 writes to ViewBackColor
System.Windows.Forms.Tests (7)
System\Windows\Forms\PropertyGridTests.cs (7)
3244
ViewBackColor
= value
3251
control.
ViewBackColor
= value;
3269
control.
ViewBackColor
= value;
3277
control.
ViewBackColor
= value;
3292
control.
ViewBackColor
= Color.Red;
3308
control.
ViewBackColor
= Color.Red;
3321
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
);
3247
Assert.Equal(expected, control.
ViewBackColor
);
3252
Assert.Equal(expected, control.
ViewBackColor
);
3270
Assert.Equal(expected, control.
ViewBackColor
);
3278
Assert.Equal(expected, control.
ViewBackColor
);
3288
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.
ViewBackColor
)];
3293
Assert.Equal(Color.Red, control.
ViewBackColor
);
3297
Assert.Equal(SystemColors.Window, control.
ViewBackColor
);
3304
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.
ViewBackColor
)];
3309
Assert.Equal(Color.Red, control.
ViewBackColor
);
3313
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);