20 references to Display
System.Drawing.Common.Tests (20)
mono\System.Drawing\GraphicsTests.cs (7)
113
Assert.Equal(GraphicsUnit.
Display
, g.PageUnit);
305
g.PageUnit = GraphicsUnit.
Display
;
332
Assert.Equal(GraphicsUnit.
Display
, g.PageUnit);
914
AssertEquals(message + ".PageUnit", GraphicsUnit.
Display
, g.PageUnit);
1059
Assert.Throws<ArgumentException>(() => BeginContainer_GraphicsUnit(GraphicsUnit.
Display
));
2594
Assert.Throws<ArgumentNullException>(() => g.DrawImage(null, new Rectangle(), new Rectangle(), GraphicsUnit.
Display
));
2608
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);