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

ToLogFont_NullLogFont_ThrowsArgumentNullException() private method

private ToLogFont_NullLogFont_ThrowsArgumentNullException ( ) : void
return void
        public void ToLogFont_NullLogFont_ThrowsArgumentNullException()
        {
            using (FontFamily family = FontFamily.GenericMonospace)
            using (var font = new Font(family, 10))
            using (var image = new Bitmap(10, 10))
            using (Graphics graphics = Graphics.FromImage(image))
            {
                Assert.Throws<ArgumentNullException>(() => font.ToLogFont(null));
                Assert.Throws<ArgumentNullException>(() => font.ToLogFont(null, graphics));
            }
        }
FontTests