16 references to CaptionFont
System.Drawing.Common.Tests (2)
System\Drawing\SystemFontsTests.cs (2)
12yield return new object[] { () => SystemFonts.CaptionFont }; 130new object[] { () => SystemFonts.CaptionFont, nameof(CaptionFont), CaptionFont},
System.Windows.Forms.Primitives.Tests (2)
Interop\User32\SystemParametersInfoWTests.cs (2)
19AreEqual(SystemFonts.CaptionFont!, captionFont); 22AreEqual(SystemFonts.CaptionFont!, menuFont);
System.Windows.Forms.Tests (12)
System\Windows\Forms\ApplicationTests.cs (3)
197Font customFont = (Font)SystemFonts.CaptionFont.Clone(); 251Assert.Throws<InvalidOperationException>(() => Application.SetDefaultFont(SystemFonts.CaptionFont)); 270using Font sysFont = SystemFonts.CaptionFont;
System\Windows\Forms\ControlTests.Properties.cs (1)
10718Font font1 = SystemFonts.CaptionFont;
System\Windows\Forms\ListViewItemTests.cs (3)
1000Font = SystemFonts.CaptionFont 1007Assert.Equal(value ?? SystemFonts.CaptionFont, item.Font); 1011Assert.Equal(value ?? SystemFonts.CaptionFont, item.Font);
System\Windows\Forms\ListViewSubItemTests.cs (5)
253Font = SystemFonts.CaptionFont 263Assert.Equal(SystemFonts.CaptionFont, subItem.Font); 291Font = SystemFonts.CaptionFont 302Assert.Equal(value ?? SystemFonts.CaptionFont, subItem.Font); 306Assert.Equal(value ?? SystemFonts.CaptionFont, subItem.Font);