Base:
13 references to ToString
System.Drawing.Common.Tests (1)
System\Drawing\FontTests.cs (1)
853
Assert.Equal($"[Font: Name={family.Name}, Size=10, Units=4, GdiCharSet=10, GdiVerticalFont=True]", font.
ToString
());
System.Windows.Forms.Tests (9)
System\Windows\Forms\DataGridViewTests.cs (3)
2352
dataGridView.Rows.Add("DefaultCellStyle", customFont1.
ToString
());
2353
dataGridView.Rows.Add("ColumnHeadersDefaultCellStyle", customFont2.
ToString
());
2354
dataGridView.Rows.Add("RowHeadersDefaultCellStyle", customFont3.
ToString
());
System\Windows\Forms\DataGridViewTests.Rendering.cs (6)
143
dataGridView.Rows.Add(nameof(DataGridView.DefaultCellStyle), customCellStyleFont.
ToString
());
144
dataGridView.Rows.Add(nameof(DataGridView.ColumnHeadersDefaultCellStyle), customColumnHeaderFont.
ToString
());
145
dataGridView.Rows.Add(nameof(DataGridView.RowHeadersDefaultCellStyle), customRowHeaderFont.
ToString
());
186
Validate.TextOut(customCellStyleFont.
ToString
(), stateValidators: State.FontFace(customCellStyleFont.Name))),
194
Validate.TextOut(customColumnHeaderFont.
ToString
(), stateValidators: State.FontFace(customCellStyleFont.Name))),
202
Validate.TextOut(customRowHeaderFont.
ToString
(), stateValidators: State.FontFace(customCellStyleFont.Name))),
WinFormsControlsTest (3)
DataGridViewTest.cs (3)
27
dataGridView1.Rows.Add("DefaultCellStyle", dataGridView1.DefaultCellStyle.Font.
ToString
());
28
dataGridView1.Rows.Add("ColumnHeadersDefaultCellStyle", dataGridView1.ColumnHeadersDefaultCellStyle.Font.
ToString
());
29
dataGridView1.Rows.Add("RowHeadersDefaultCellStyle", dataGridView1.RowHeadersDefaultCellStyle.Font.
ToString
());