Exemplo n.º 1
0
        public void TestToggleDirection()
        {
            FPnl = new TPnlCollapsible(THostedControlKind.hckUserControl, HOSTEDUSERCONTROL, TCollapseDirection.cdVertical);
            Assert.AreEqual(TCollapseDirection.cdVertical, FPnl.CollapseDirection);

            FPnl.ToggleDirection();

            Assert.AreEqual(TCollapseDirection.cdHorizontal, FPnl.CollapseDirection);

            FPnl.ToggleDirection();

            Assert.AreEqual(TCollapseDirection.cdVertical, FPnl.CollapseDirection);
        }