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