5 references to MeasureText
System.Windows.Forms.Tests (5)
System\Windows\Forms\TextRendererTests.cs (5)
490
Size result = TextRenderer.
MeasureText
(graphics, text, font, proposedSize);
495
Assert.Equal(result, TextRenderer.
MeasureText
(graphics, text, font, proposedSize));
523
Assert.Equal(Size.Empty, TextRenderer.
MeasureText
(graphics, text, SystemFonts.MenuFont, new Size(300, 400)));
552
TextRenderer.
MeasureText
(mockDeviceContext.Object, "text", SystemFonts.MenuFont, new Size(300, 400));
565
Assert.Throws<ArgumentNullException>("dc", () => TextRenderer.
MeasureText
(null, string.Empty, SystemFonts.MenuFont, new Size(300, 400)));