8 writes to CommandsForeColor
System.Windows.Forms.Tests (7)
System\Windows\Forms\PropertyGridTests.cs (7)
1200
CommandsForeColor
= value
1206
control.
CommandsForeColor
= value;
1224
control.
CommandsForeColor
= value;
1232
control.
CommandsForeColor
= value;
1247
control.
CommandsForeColor
= Color.Red;
1263
control.
CommandsForeColor
= Color.Red;
1549
CommandsForeColor
= Color.FromArgb(255, 0, 0, 2),
System.Windows.Forms.UI.IntegrationTests (1)
PropertyGridTests.cs (1)
219
_propertyGrid.
CommandsForeColor
= Color.Red;
15 references to CommandsForeColor
System.Windows.Forms.Tests (13)
System\Windows\Forms\PropertyGridTests.cs (13)
67
Assert.Equal(SystemColors.ControlText, control.
CommandsForeColor
);
1202
Assert.Equal(expected, control.
CommandsForeColor
);
1207
Assert.Equal(expected, control.
CommandsForeColor
);
1225
Assert.Equal(expected, control.
CommandsForeColor
);
1233
Assert.Equal(expected, control.
CommandsForeColor
);
1243
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.
CommandsForeColor
)];
1248
Assert.Equal(Color.Red, control.
CommandsForeColor
);
1252
Assert.Equal(SystemColors.ControlText, control.
CommandsForeColor
);
1259
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.
CommandsForeColor
)];
1264
Assert.Equal(Color.Red, control.
CommandsForeColor
);
1268
Assert.Equal(SystemColors.ControlText, control.
CommandsForeColor
);
1559
Assert.Equal(Color.FromArgb(255, 0, 0, 2), control.
CommandsForeColor
);
1569
Assert.Equal(Color.FromArgb(255, 0, 0, 2), control.
CommandsForeColor
);
System.Windows.Forms.UI.IntegrationTests (2)
PropertyGridTests.cs (2)
217
_propertyGrid.
CommandsForeColor
.Should().Be(SystemColors.ControlText);
220
_propertyGrid.
CommandsForeColor
.Should().Be(Color.Red);