20 references to Display
System.Drawing.Common.Tests (20)
mono\System.Drawing\GraphicsTests.cs (7)
111
Assert.Equal(GraphicsUnit.
Display
, g.PageUnit);
303
g.PageUnit = GraphicsUnit.
Display
;
330
Assert.Equal(GraphicsUnit.
Display
, g.PageUnit);
912
AssertEquals(message + ".PageUnit", GraphicsUnit.
Display
, g.PageUnit);
1057
Assert.Throws<ArgumentException>(() => BeginContainer_GraphicsUnit(GraphicsUnit.
Display
));
2591
Assert.Throws<ArgumentNullException>(() => g.DrawImage(null, default(Rectangle), default, GraphicsUnit.
Display
));
2605
Assert.Throws<ArgumentException>(() => DrawImage_ImageRectangleRectangleGraphicsUnit(GraphicsUnit.
Display
));
System\Drawing\FontConverterTests.cs (2)
229
Assert.NotEqual(GraphicsUnit.
Display
, item);
234
[InlineData("Display", GraphicsUnit.
Display
)]
System\Drawing\FontTests.cs (9)
328
AssertExtensions.Throws<ArgumentNullException>("family", () => new Font((FontFamily)null, 10, GraphicsUnit.
Display
));
329
AssertExtensions.Throws<ArgumentNullException>("family", () => new Font((FontFamily)null, 10, FontStyle.Italic, GraphicsUnit.
Display
));
330
AssertExtensions.Throws<ArgumentNullException>("family", () => new Font((FontFamily)null, 10, FontStyle.Italic, GraphicsUnit.
Display
, 10));
331
AssertExtensions.Throws<ArgumentNullException>("family", () => new Font((FontFamily)null, 10, FontStyle.Italic, GraphicsUnit.
Display
, 10, gdiVerticalFont: true));
345
AssertExtensions.Throws<ArgumentException>(null, () => new Font(family, 10, GraphicsUnit.
Display
));
346
AssertExtensions.Throws<ArgumentException>(null, () => new Font(family, 10, FontStyle.Italic, GraphicsUnit.
Display
));
347
AssertExtensions.Throws<ArgumentException>(null, () => new Font(family, 10, FontStyle.Italic, GraphicsUnit.
Display
, 10));
348
AssertExtensions.Throws<ArgumentException>(null, () => new Font(family, 10, FontStyle.Italic, GraphicsUnit.
Display
, 10, gdiVerticalFont: true));
375
[InlineData(GraphicsUnit.
Display
)]
System\Drawing\GraphicsTests.cs (2)
696
[InlineData(GraphicsUnit.
Display
)]
2811
Assert.Equal(GraphicsUnit.
Display
, graphics.PageUnit);