20 references to Display
System.Drawing.Common.Tests (20)
mono\System.Drawing\GraphicsTests.cs (7)
113Assert.Equal(GraphicsUnit.Display, g.PageUnit); 305g.PageUnit = GraphicsUnit.Display; 332Assert.Equal(GraphicsUnit.Display, g.PageUnit); 914AssertEquals(message + ".PageUnit", GraphicsUnit.Display, g.PageUnit); 1059Assert.Throws<ArgumentException>(() => BeginContainer_GraphicsUnit(GraphicsUnit.Display)); 2594Assert.Throws<ArgumentNullException>(() => g.DrawImage(null, new Rectangle(), new Rectangle(), GraphicsUnit.Display)); 2608Assert.Throws<ArgumentException>(() => DrawImage_ImageRectangleRectangleGraphicsUnit(GraphicsUnit.Display));
System\Drawing\FontConverterTests.cs (2)
229Assert.NotEqual(GraphicsUnit.Display, item); 234[InlineData("Display", GraphicsUnit.Display)]
System\Drawing\FontTests.cs (9)
328AssertExtensions.Throws<ArgumentNullException>("family", () => new Font((FontFamily)null, 10, GraphicsUnit.Display)); 329AssertExtensions.Throws<ArgumentNullException>("family", () => new Font((FontFamily)null, 10, FontStyle.Italic, GraphicsUnit.Display)); 330AssertExtensions.Throws<ArgumentNullException>("family", () => new Font((FontFamily)null, 10, FontStyle.Italic, GraphicsUnit.Display, 10)); 331AssertExtensions.Throws<ArgumentNullException>("family", () => new Font((FontFamily)null, 10, FontStyle.Italic, GraphicsUnit.Display, 10, gdiVerticalFont: true)); 345AssertExtensions.Throws<ArgumentException>(null, () => new Font(family, 10, GraphicsUnit.Display)); 346AssertExtensions.Throws<ArgumentException>(null, () => new Font(family, 10, FontStyle.Italic, GraphicsUnit.Display)); 347AssertExtensions.Throws<ArgumentException>(null, () => new Font(family, 10, FontStyle.Italic, GraphicsUnit.Display, 10)); 348AssertExtensions.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)] 2811Assert.Equal(GraphicsUnit.Display, graphics.PageUnit);