public virtual void SetMinHeightUnitValueTest()
        {
            float expectedMinHeight = 30;
            Style style             = new Style();

            NUnit.Framework.Assert.IsNull(style.GetProperty <UnitValue>(Property.MIN_HEIGHT));
            style.SetMinHeight(UnitValue.CreatePointValue(expectedMinHeight));
            NUnit.Framework.Assert.AreEqual(UnitValue.CreatePointValue(expectedMinHeight), style.GetProperty <UnitValue
                                                                                                              >(Property.MIN_HEIGHT));
        }
Exemple #2
0
        public virtual void SetMinHeightViaStyleTest()
        {
            float expectedMinHeight = 20;
            Style style             = new Style();

            style.SetMinHeight(expectedMinHeight);
            Paragraph p = new Paragraph();

            p.AddStyle(style);
            NUnit.Framework.Assert.AreEqual(UnitValue.CreatePointValue(expectedMinHeight), p.GetProperty <UnitValue>(Property
                                                                                                                     .MIN_HEIGHT));
        }