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

ToString_Invoke_ReturnsExpected() private method

private ToString_Invoke_ReturnsExpected ( ) : void
return void
        public void ToString_Invoke_ReturnsExpected()
        {
            using (FontFamily family = FontFamily.GenericSansSerif)
            using (var font = new Font(family, 10, FontStyle.Bold, GraphicsUnit.Inch, 10, gdiVerticalFont: true))
            {
                Assert.Equal($"[Font: Name={family.Name}, Size=10, Units=4, GdiCharSet=10, GdiVerticalFont=True]", font.ToString());
            }
        }
FontTests