34 references to new
System.Drawing.Common.Tests (26)
mono\System.Drawing\GraphicsTests.cs (1)
2014
using Font font =
new
(FontFamily.GenericSerif, 11.0f);
mono\System.Imaging\MetafileTest.cs (1)
286
Font test_font =
new
(FontFamily.GenericMonospace, 12);
System\Drawing\FontTests.cs (24)
35
using Font font1 =
new
(fontFamily, size);
36
using Font font2 =
new
(fontFamily, size);
44
using Font font1 =
new
(fontFamily1, 9);
45
using Font font2 =
new
(fontFamily2, 9);
64
using Font font =
new
(fontFamily, emSize);
315
Font font =
new
(family, 10);
326
AssertExtensions.Throws<ArgumentNullException>("family", () => new
Font
((FontFamily)null, 10));
343
AssertExtensions.Throws<ArgumentException>(null, () => new
Font
(family, 10));
360
AssertExtensions.Throws<ArgumentException>("emSize", () => new
Font
(family, emSize));
411
Font font =
new
(family, 10);
429
yield return new object[] { new
Font
(family, 10), new(), false };
430
yield return new object[] { new
Font
(family, 10), null, false };
490
using Font font =
new
(family, 10);
501
using Font font =
new
(family, 10);
517
using Font font =
new
(family, 10);
525
using Font font =
new
(family, 10);
533
using Font font =
new
(family, 10);
547
Font font =
new
(family, 10);
735
using Font font =
new
(family, 10);
763
using Font font =
new
(family, 10);
774
using Font font =
new
(family, 10);
782
using Font font =
new
(family, 10);
814
using Font font =
new
(family, 10);
842
Font font =
new
(family, 10);
System.Windows.Forms.Tests (8)
SerializableTypesTests.cs (3)
161
using (Font font =
new
(FontFamily.GenericSansSerif, 9f))
208
using (Font font =
new
(FontFamily.GenericSansSerif, 9f))
354
NodeFont = new
Font
(FontFamily.GenericSansSerif, 9f)
System\Windows\Forms\ApplicationTests.cs (3)
220
Font font =
new
(new FontFamily("Arial"), 12f);
221
Font scaled =
new
(new FontFamily("Arial"), 16f);
310
using Font customFont =
new
(new FontFamily("Arial"), 12f);
System\Windows\Forms\TreeViewTests.cs (2)
2702
Font font =
new
(FontFamily.GenericSansSerif, 100);
2710
Font smallFont =
new
(FontFamily.GenericSansSerif, 2);