6 references to new
System.Drawing.Common.Tests (3)
System\Drawing\FontTests.cs (3)
161using Font font = new(fontFamily.Name, emSize, unit); 365AssertExtensions.Throws<ArgumentException>("emSize", () => new Font(family.Name, emSize, GraphicsUnit.Document)); 382AssertExtensions.Throws<ArgumentException>(null, () => new Font(family.Name, 10, unit));
System.Windows.Forms.Tests (3)
System\Windows\Forms\AxHostTests.cs (2)
1509using Font font = new("Arial", 10, unit); 1570using Font font = new("Arial", 10, unit);
System\Windows\Forms\Control.ActiveXFontMarshallerTests.cs (1)
22using Font font = new("Arial", 11.0f, GraphicsUnit.Point);