public virtual void TestItalicFlag() { FontCharacteristics fontCharacteristics = new FontCharacteristics(); NUnit.Framework.Assert.IsFalse(fontCharacteristics.IsItalic()); NUnit.Framework.Assert.IsTrue(fontCharacteristics.IsUndefined()); fontCharacteristics.SetItalicFlag(true); NUnit.Framework.Assert.IsTrue(fontCharacteristics.IsItalic()); NUnit.Framework.Assert.IsFalse(fontCharacteristics.IsUndefined()); fontCharacteristics = new FontCharacteristics(); fontCharacteristics.SetItalicFlag(false); NUnit.Framework.Assert.IsFalse(fontCharacteristics.IsItalic()); NUnit.Framework.Assert.IsTrue(fontCharacteristics.IsUndefined()); }