public virtual void IsNotTextRenderer()
        {
            TabRenderer tabRenderer = new TabRenderer(new Tab());

            NUnit.Framework.Assert.IsFalse(LineRenderer.IsTextRendererAndRequiresSpecialScriptPreLayoutProcessing(tabRenderer
                                                                                                                  ));
        }
        public virtual void UpdateSpecialScriptLayoutResultsNonTextRenderer()
        {
            IDictionary <int, LayoutResult> specialScriptLayoutResults = new Dictionary <int, LayoutResult>();
            LayoutResult res = new LayoutResult(LayoutResult.NOTHING, new LayoutArea(0, new Rectangle(0, 0, 10, 10)),
                                                null, null);

            specialScriptLayoutResults.Put(-1, res);
            NUnit.Framework.Assert.IsFalse(specialScriptLayoutResults.IsEmpty());
            TabRenderer tabRenderer = new TabRenderer(new Tab());

            LineRenderer.UpdateSpecialScriptLayoutResults(specialScriptLayoutResults, tabRenderer, 0, res);
            NUnit.Framework.Assert.IsTrue(specialScriptLayoutResults.IsEmpty());
        }
        public virtual void UpdateSpecialScriptLayoutResultsFloatingRenderer()
        {
            IDictionary <int, LayoutResult> specialScriptLayoutResults = new Dictionary <int, LayoutResult>();
            LayoutResult res = new LayoutResult(LayoutResult.NOTHING, new LayoutArea(0, new Rectangle(0, 0, 10, 10)),
                                                null, null);
            int childPosToRemain = -1;

            specialScriptLayoutResults.Put(childPosToRemain, res);
            NUnit.Framework.Assert.IsFalse(specialScriptLayoutResults.IsEmpty());
            Tab tab = new Tab();

            tab.SetProperty(Property.FLOAT, FloatPropertyValue.RIGHT);
            TabRenderer tabRenderer          = new TabRenderer(tab);
            int         childPosNotToBeAdded = 0;

            LineRenderer.UpdateSpecialScriptLayoutResults(specialScriptLayoutResults, tabRenderer, childPosNotToBeAdded
                                                          , res);
            NUnit.Framework.Assert.IsTrue(specialScriptLayoutResults.ContainsKey(childPosToRemain));
            NUnit.Framework.Assert.IsFalse(specialScriptLayoutResults.ContainsKey(childPosNotToBeAdded));
        }