152 references to State
System.Windows.Forms.Tests (152)
NumericUpDownTests.cs (5)
47
State
.Pen(2, upDown.BackColor, PEN_STYLE.PS_SOLID)));
62
State
.Pen(1, upDown.BackColor, PEN_STYLE.PS_SOLID)));
89
State
.Pen(1, upDown.BackColor, PEN_STYLE.PS_SOLID)),
92
State
.Pen(1, SystemColors.Control, PEN_STYLE.PS_SOLID)),
97
State
.Pen(1, upDown.BackColor, PEN_STYLE.PS_SOLID)));
System\Windows\Forms\ButtonRenderingTests.cs (20)
50
State
.PenColor(SystemColors.ControlLightLight)),
53
State
.PenColor(SystemColors.ControlLightLight)),
56
State
.PenColor(SystemColors.ControlDarkDark)),
59
State
.PenColor(SystemColors.ControlDarkDark)),
62
State
.PenColor(SystemColors.Control)),
65
State
.PenColor(SystemColors.Control)),
68
State
.PenColor(SystemColors.ControlDark)),
71
State
.PenColor(SystemColors.ControlDark)));
136
State
.PenColor(SystemColors.ControlLightLight)),
139
State
.PenColor(SystemColors.ControlLightLight)),
142
State
.PenColor(SystemColors.ControlDarkDark)),
145
State
.PenColor(SystemColors.ControlDarkDark)),
148
State
.PenColor(SystemColors.Control)),
151
State
.PenColor(SystemColors.Control)),
154
State
.PenColor(SystemColors.ControlDark)),
157
State
.PenColor(SystemColors.ControlDark)));
245
State
.PenColor(Color.Black),
246
State
.PenStyle(PEN_STYLE.PS_ENDCAP_ROUND),
247
State
.BrushStyle(BRUSH_STYLE.BS_NULL), // Regressed in https://github.com/dotnet/winforms/pull/3667
248
State
.Rop2(R2_MODE.R2_COPYPEN)));
System\Windows\Forms\CheckBoxRendererTests.cs (3)
80
State
.FontFace(SystemFonts.DefaultFont.Name)
117
State
.FontFace(SystemFonts.DefaultFont.Name)
151
State
.FontFace(SystemFonts.DefaultFont.Name)
System\Windows\Forms\ControlPaintTests.Rendering.cs (67)
31
State
.Pen(1, Color.Blue, PEN_STYLE.PS_SOLID)));
60
State
.Pen(16, ControlPaint.DarkDark(Color.Gray), penStyle),
61
State
.Transform(oneSixteenth)),
66
State
.Pen(16, ControlPaint.DarkDark(Color.Gray), penStyle),
67
State
.Transform(oneSixteenth)),
72
State
.Pen(16, ControlPaint.LightLight(Color.Gray), penStyle),
73
State
.Transform(oneSixteenth)),
78
State
.Pen(16, ControlPaint.LightLight(Color.Gray), penStyle),
79
State
.Transform(oneSixteenth)),
84
State
.Pen(16, ControlPaint.Light(Color.Gray), penStyle),
85
State
.Transform(oneSixteenth)),
90
State
.Pen(16, ControlPaint.Light(Color.Gray), penStyle),
91
State
.Transform(oneSixteenth)));
120
State
.Pen(16, ControlPaint.DarkDark(SystemColors.Control), penStyle),
121
State
.Transform(oneSixteenth)),
126
State
.Pen(16, ControlPaint.DarkDark(SystemColors.Control), penStyle),
127
State
.Transform(oneSixteenth)),
132
State
.Pen(16, ControlPaint.LightLight(SystemColors.Control), penStyle),
133
State
.Transform(oneSixteenth)),
138
State
.Pen(16, ControlPaint.LightLight(SystemColors.Control), penStyle),
139
State
.Transform(oneSixteenth)),
144
State
.Pen(16, ControlPaint.Light(SystemColors.Control), penStyle),
145
State
.Transform(oneSixteenth)),
150
State
.Pen(16, ControlPaint.Light(SystemColors.Control), penStyle),
151
State
.Transform(oneSixteenth)),
159
State
.Pen(16, SystemColors.ControlLight, penStyle),
160
State
.Transform(oneSixteenth)),
165
State
.Pen(16, SystemColors.ControlLight, penStyle),
166
State
.Transform(oneSixteenth)));
197
State
.Pen(16, ControlPaint.LightLight(Color.PeachPuff), penStyle),
198
State
.Transform(oneSixteenth)),
203
State
.Pen(16, ControlPaint.LightLight(Color.PeachPuff), penStyle),
204
State
.Transform(oneSixteenth)),
209
State
.Pen(16, ControlPaint.DarkDark(Color.PeachPuff), penStyle),
210
State
.Transform(oneSixteenth)),
215
State
.Pen(16, ControlPaint.DarkDark(Color.PeachPuff), penStyle),
216
State
.Transform(oneSixteenth)),
221
State
.Pen(16, Color.PeachPuff, penStyle),
222
State
.Transform(oneSixteenth)),
227
State
.Pen(16, Color.PeachPuff, penStyle),
228
State
.Transform(oneSixteenth)),
233
State
.Pen(16, ControlPaint.Dark(Color.PeachPuff), penStyle),
234
State
.Transform(oneSixteenth)),
239
State
.Pen(16, ControlPaint.Dark(Color.PeachPuff), penStyle),
240
State
.Transform(oneSixteenth)));
271
State
.Pen(16, SystemColors.ControlLightLight, penStyle),
272
State
.Transform(oneSixteenth)),
277
State
.Pen(16, SystemColors.ControlLightLight, penStyle),
278
State
.Transform(oneSixteenth)),
283
State
.Pen(16, SystemColors.ControlDarkDark, penStyle),
284
State
.Transform(oneSixteenth)),
289
State
.Pen(16, SystemColors.ControlDarkDark, penStyle),
290
State
.Transform(oneSixteenth)),
295
State
.Pen(16, SystemColors.Control, penStyle),
296
State
.Transform(oneSixteenth)),
301
State
.Pen(16, SystemColors.Control, penStyle),
302
State
.Transform(oneSixteenth)),
307
State
.Pen(16, SystemColors.ControlDark, penStyle),
308
State
.Transform(oneSixteenth)),
313
State
.Pen(16, SystemColors.ControlDark, penStyle),
314
State
.Transform(oneSixteenth)));
340
State
.Transform(oneSixteenth),
341
State
.Pen(16, Color.Green, penStyle),
342
State
.Brush(Color.Green, BRUSH_STYLE.BS_SOLID)));
368
State
.Transform(oneSixteenth),
369
State
.Pen(16, Color.Pink, penStyle),
370
State
.Brush(Color.Pink, BRUSH_STYLE.BS_SOLID)));
System\Windows\Forms\DataGridViewTests.Rendering.cs (28)
58
State
.Pen(1, Color.Empty, PEN_STYLE.PS_NULL),
59
State
.Brush(SystemColors.ButtonShadow, BRUSH_STYLE.BS_SOLID),
60
State
.Transform(oneSixteenth)),
65
State
.Pen(16, Color.Blue, penStyle),
66
State
.Transform(oneSixteenth)),
71
State
.Pen(16, Color.Blue, penStyle),
72
State
.Transform(oneSixteenth)),
77
State
.Pen(16, Color.Blue, penStyle),
78
State
.Transform(oneSixteenth)),
83
State
.Pen(16, Color.Blue, penStyle),
84
State
.Transform(oneSixteenth)),
89
State
.Pen(1, Color.Empty, PEN_STYLE.PS_NULL),
90
State
.Brush(SystemColors.ButtonHighlight, BRUSH_STYLE.BS_SOLID),
91
State
.Transform(oneSixteenth)),
96
State
.Pen(16, SystemColors.Desktop, penStyle),
97
State
.Brush(Color.Empty, BRUSH_STYLE.BS_NULL),
98
State
.Transform(oneSixteenth)));
178
Validate.TextOut(column1.HeaderText, stateValidators:
State
.FontFace(customColumnHeaderFont.Name))),
180
Validate.TextOut(column2.HeaderText, stateValidators:
State
.FontFace(customColumnHeaderFont.Name))),
184
Validate.TextOut("Row 1", stateValidators:
State
.FontFace(customRowHeaderFont.Name))),
186
Validate.TextOut(nameof(DataGridView.DefaultCellStyle), stateValidators:
State
.FontFace(customCellStyleFont.Name))),
188
Validate.TextOut(customCellStyleFont.ToString(), stateValidators:
State
.FontFace(customCellStyleFont.Name))),
192
Validate.TextOut("Row 2", stateValidators:
State
.FontFace(customRowHeaderFont.Name))),
194
Validate.TextOut(nameof(DataGridView.ColumnHeadersDefaultCellStyle), stateValidators:
State
.FontFace(customCellStyleFont.Name))),
196
Validate.TextOut(customColumnHeaderFont.ToString(), stateValidators:
State
.FontFace(customCellStyleFont.Name))),
200
Validate.TextOut("Row 3", stateValidators:
State
.FontFace(customRowHeaderFont.Name))),
202
Validate.TextOut(nameof(DataGridView.RowHeadersDefaultCellStyle), stateValidators:
State
.FontFace(customCellStyleFont.Name))),
204
Validate.TextOut(customRowHeaderFont.ToString(), stateValidators:
State
.FontFace(customCellStyleFont.Name))),
System\Windows\Forms\PropertyGridInternal\PropertyGridViewTests.Rendering.cs (5)
44
Validate.TextOut("Misc", new(25, 4, 25, 14), stateValidators:
State
.FontFace(Control.DefaultFont.Name))),
50
Validate.TextOut(pt.X.ToString(), new(145, 22, 5, 14), stateValidators:
State
.FontFace(Control.DefaultFont.Name))),
53
Validate.TextOut(nameof(Point.X), new(25, 23, 6, 14), stateValidators:
State
.FontFace(Control.DefaultFont.Name))),
59
Validate.TextOut(pt.Y.ToString(), new(145, 41, 5, 14), stateValidators:
State
.FontFace(Control.DefaultFont.Name))),
62
Validate.TextOut(nameof(Point.Y), new(25, 42, 6, 14), stateValidators:
State
.FontFace(Control.DefaultFont.Name))),
System\Windows\Forms\RadioButtonRendererTests.cs (2)
73
State
.FontFace(SystemFonts.DefaultFont.Name)
147
State
.FontFace(SystemFonts.DefaultFont.Name)
System\Windows\Forms\StatusStripTests.Rendering.cs (2)
47
Validate.BitBltValidator(bitBltBounds,
State
.BrushColor(Color.Blue)),
48
Validate.Polyline16(polylineBounds, null,
State
.Pen(16, Color.Green, penStyle)));
System\Windows\Forms\TextBoxRendererTests.cs (2)
81
State
.FontFace(SystemFonts.DefaultFont.Name)
117
State
.FontFace(SystemFonts.DefaultFont.Name)
System\Windows\Forms\TextRendererTests.cs (9)
584
State
.FontFace(SystemFonts.DefaultFont.Name),
585
State
.TextColor(Color.Blue),
586
State
.BackgroundMode(BACKGROUND_MODE.TRANSPARENT)));
688
State
.FontFace(SystemFonts.DefaultFont.Name),
689
State
.TextColor(Color.Red)));
711
State
.FontFace(SystemFonts.DefaultFont.Name),
712
State
.TextColor(Color.Red)));
787
State
.FontFace(SystemFonts.DefaultFont.Name),
788
State
.TextColor(Color.Red)));
System\Windows\Forms\ToolStripButtonTests.Rendering.cs (5)
62
State
.Brush(Color.Blue, BRUSH_STYLE.BS_SOLID)));
87
State
.Brush(SystemColors.Highlight, BRUSH_STYLE.BS_SOLID)),
113
State
.Brush(SystemColors.Highlight, BRUSH_STYLE.BS_SOLID)),
139
State
.Brush(SystemColors.Highlight, BRUSH_STYLE.BS_SOLID)),
166
State
.Brush(SystemColors.Highlight, BRUSH_STYLE.BS_SOLID)),
System\Windows\Forms\ToolStripTests.Rendering.cs (3)
51
State
.BrushColor(Color.Blue)),
54
State
.BrushColor(form.BackColor),
55
State
.Clipping(expectedRects)));
TextBoxTests.Rendering.cs (1)
41
State
.BackgroundMode(BACKGROUND_MODE.TRANSPARENT)));