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));
}
}