20 references to Display
System.Drawing.Common.Tests (20)
mono\System.Drawing\GraphicsTests.cs (7)
111Assert.Equal(GraphicsUnit.Display, g.PageUnit); 303g.PageUnit = GraphicsUnit.Display; 330Assert.Equal(GraphicsUnit.Display, g.PageUnit); 912AssertEquals(message + ".PageUnit", GraphicsUnit.Display, g.PageUnit); 1057Assert.Throws<ArgumentException>(() => BeginContainer_GraphicsUnit(GraphicsUnit.Display)); 2591Assert.Throws<ArgumentNullException>(() => g.DrawImage(null, default(Rectangle), default, GraphicsUnit.Display)); 2605Assert.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);