Exemplo n.º 1
0
        public virtual void SetVerticalAlignmentBottomTest()
        {
            VerticalAlignment?expectedAlignment = VerticalAlignment.BOTTOM;
            Style             style             = new Style();

            NUnit.Framework.Assert.IsNull(style.GetProperty <VerticalAlignment?>(Property.VERTICAL_ALIGNMENT));
            style.SetVerticalAlignment(expectedAlignment);
            NUnit.Framework.Assert.AreEqual(expectedAlignment, style.GetProperty <VerticalAlignment?>(Property.VERTICAL_ALIGNMENT
                                                                                                      ));
        }
Exemplo n.º 2
0
        public virtual void SetVerticalAlignmentViaStyleTest()
        {
            VerticalAlignment?expectedAlignment = VerticalAlignment.MIDDLE;
            Style             style             = new Style();

            style.SetVerticalAlignment(expectedAlignment);
            Paragraph p = new Paragraph();

            p.AddStyle(style);
            NUnit.Framework.Assert.AreEqual(expectedAlignment, p.GetProperty <VerticalAlignment?>(Property.VERTICAL_ALIGNMENT
                                                                                                  ));
        }