Base:
13 references to ToString
System.Drawing.Common.Tests (1)
System\Drawing\FontTests.cs (1)
853Assert.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)
2353dataGridView.Rows.Add("DefaultCellStyle", customFont1.ToString()); 2354dataGridView.Rows.Add("ColumnHeadersDefaultCellStyle", customFont2.ToString()); 2355dataGridView.Rows.Add("RowHeadersDefaultCellStyle", customFont3.ToString());
System\Windows\Forms\DataGridViewTests.Rendering.cs (6)
143dataGridView.Rows.Add(nameof(DataGridView.DefaultCellStyle), customCellStyleFont.ToString()); 144dataGridView.Rows.Add(nameof(DataGridView.ColumnHeadersDefaultCellStyle), customColumnHeaderFont.ToString()); 145dataGridView.Rows.Add(nameof(DataGridView.RowHeadersDefaultCellStyle), customRowHeaderFont.ToString()); 186Validate.TextOut(customCellStyleFont.ToString(), stateValidators: State.FontFace(customCellStyleFont.Name))), 194Validate.TextOut(customColumnHeaderFont.ToString(), stateValidators: State.FontFace(customCellStyleFont.Name))), 202Validate.TextOut(customRowHeaderFont.ToString(), stateValidators: State.FontFace(customCellStyleFont.Name))),
WinFormsControlsTest (3)
DataGridViewTest.cs (3)
27dataGridView1.Rows.Add("DefaultCellStyle", dataGridView1.DefaultCellStyle.Font.ToString()); 28dataGridView1.Rows.Add("ColumnHeadersDefaultCellStyle", dataGridView1.ColumnHeadersDefaultCellStyle.Font.ToString()); 29dataGridView1.Rows.Add("RowHeadersDefaultCellStyle", dataGridView1.RowHeadersDefaultCellStyle.Font.ToString());