System.Drawing.Tests.FontTests.GetHeight_Dpi_ReturnsExpected C# (CSharp) Method

GetHeight_Dpi_ReturnsExpected() private method

private GetHeight_Dpi_ReturnsExpected ( float dpi, float expected ) : void
dpi float
expected float
return void
        public void GetHeight_Dpi_ReturnsExpected(float dpi, float expected)
        {
            using (FontFamily family = FontFamily.GenericSansSerif)
            using (var font = new Font(family, 10))
            {
                Assert.Equal(expected, font.GetHeight(dpi), 5);
            }
        }
FontTests