public void GetDrawingStyle_Test() { string family = "Sans-Serif"; PDFUnit size = 12; PDFFont target = new PDFFont(family, size); System.Drawing.FontStyle actual; actual = target.GetDrawingStyle(); Assert.AreEqual(System.Drawing.FontStyle.Regular, actual); target.FontStyle = FontStyle.Italic | FontStyle.Bold; actual = target.GetDrawingStyle(); Assert.AreEqual(System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic, actual); }
public void GetDrawingStyle_Test1() { FontStyle fontStyle = FontStyle.Bold; System.Drawing.FontStyle expected = System.Drawing.FontStyle.Bold; System.Drawing.FontStyle actual; actual = PDFFont.GetDrawingStyle(fontStyle); Assert.AreEqual(expected, actual); }