13 references to new
System.Drawing.Common.Tests (13)
System\Drawing\FontFamilyTests.cs (12)
40
using FontFamily fontFamily =
new
("Code New Roman", fontCollection);
50
AssertExtensions.Throws<ArgumentException>(null, () => new
FontFamily
(name, null));
57
AssertExtensions.Throws<ArgumentNullException>("name", () => new
FontFamily
(null!, null));
64
AssertExtensions.Throws<ArgumentException>(null, () => new
FontFamily
("Times New Roman", fontCollection));
179
using FontFamily fontFamily =
new
("Code New Roman", fontCollection);
193
FontFamily family =
new
("Code New Roman", collection);
205
FontFamily family =
new
("Code New Roman", collection);
224
using FontFamily fontFamily =
new
("Code New Roman", fontCollection);
234
FontFamily family =
new
("Code New Roman", collection);
246
FontFamily family =
new
("Code New Roman", collection);
258
FontFamily family =
new
("Code New Roman", collection);
270
FontFamily family =
new
("Code New Roman", collection);
System\Drawing\FontTests.cs (1)
340
FontFamily family =
new
("Code New Roman", collection);