7 writes to ViewForeColor
System.Windows.Forms.Tests (6)
System\Windows\Forms\PropertyGridTests.cs (6)
3380
ViewForeColor
= value
3386
control.
ViewForeColor
= value;
3404
control.
ViewForeColor
= value;
3412
control.
ViewForeColor
= value;
3427
control.
ViewForeColor
= Color.Red;
3443
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
);
3382
Assert.Equal(expected, control.
ViewForeColor
);
3387
Assert.Equal(expected, control.
ViewForeColor
);
3405
Assert.Equal(expected, control.
ViewForeColor
);
3413
Assert.Equal(expected, control.
ViewForeColor
);
3423
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.
ViewForeColor
)];
3428
Assert.Equal(Color.Red, control.
ViewForeColor
);
3432
Assert.Equal(SystemColors.WindowText, control.
ViewForeColor
);
3439
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.
ViewForeColor
)];
3444
Assert.Equal(Color.Red, control.
ViewForeColor
);
3448
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);