public virtual void SetMinWidthUnitValueTest() { float expectedMinWidth = 30; Style style = new Style(); NUnit.Framework.Assert.IsNull(style.GetProperty <UnitValue>(Property.MIN_WIDTH)); style.SetMinWidth(UnitValue.CreatePointValue(expectedMinWidth)); NUnit.Framework.Assert.AreEqual(UnitValue.CreatePointValue(expectedMinWidth), style.GetProperty <UnitValue> (Property.MIN_WIDTH)); }
public virtual void SetMinWidthViaStyleTest() { float expectedMinWidth = 20; Style style = new Style(); style.SetMinWidth(expectedMinWidth); Paragraph p = new Paragraph(); p.AddStyle(style); NUnit.Framework.Assert.AreEqual(UnitValue.CreatePointValue(expectedMinWidth), p.GetProperty <UnitValue>(Property .MIN_WIDTH)); }