7 writes to ViewForeColor
System.Windows.Forms.Tests (6)
System\Windows\Forms\PropertyGridTests.cs (6)
3415
ViewForeColor
= value
3421
control.
ViewForeColor
= value;
3439
control.
ViewForeColor
= value;
3447
control.
ViewForeColor
= value;
3462
control.
ViewForeColor
= Color.Red;
3478
control.
ViewForeColor
= Color.Red;
System.Windows.Forms.UI.IntegrationTests (1)
PropertyGridTests.cs (1)
358
_propertyGrid.
ViewForeColor
= Color.Green;
13 references to ViewForeColor
System.Windows.Forms.Tests (11)
System\Windows\Forms\PropertyGridTests.cs (11)
166
Assert.Equal(SystemColors.WindowText, control.
ViewForeColor
);
3417
Assert.Equal(expected, control.
ViewForeColor
);
3422
Assert.Equal(expected, control.
ViewForeColor
);
3440
Assert.Equal(expected, control.
ViewForeColor
);
3448
Assert.Equal(expected, control.
ViewForeColor
);
3458
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.
ViewForeColor
)];
3463
Assert.Equal(Color.Red, control.
ViewForeColor
);
3467
Assert.Equal(SystemColors.WindowText, control.
ViewForeColor
);
3474
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.
ViewForeColor
)];
3479
Assert.Equal(Color.Red, control.
ViewForeColor
);
3483
Assert.Equal(SystemColors.WindowText, control.
ViewForeColor
);
System.Windows.Forms.UI.IntegrationTests (2)
PropertyGridTests.cs (2)
356
_propertyGrid.
ViewForeColor
.Should().Be(SystemColors.WindowText);
359
_propertyGrid.
ViewForeColor
.Should().Be(Color.Green);