public void GetFolds_MultiLineComment_FoldRegionContainsEntireComment()
        {
            DomRegion region = helper.GetFirstFoldRegion();

            int       beginLine      = 1;
            int       beginColumn    = 1;
            int       endLine        = 2;
            int       endColumn      = 16;
            DomRegion expectedRegion = new DomRegion(beginLine, beginColumn, endLine, endColumn);

            Assert.AreEqual(expectedRegion, region);
        }
Beispiel #2
0
        public void GetFolds_QualifiedRootElementWithNamespace_FoldRegionContainsRootElement()
        {
            DomRegion region = helper.GetFirstFoldRegion();

            int       beginLine      = 1;
            int       beginColumn    = 1;
            int       endLine        = 2;
            int       endColumn      = 13;
            DomRegion expectedRegion = new DomRegion(beginLine, beginColumn, endLine, endColumn);

            Assert.AreEqual(expectedRegion, region);
        }
Beispiel #3
0
        public void GetFolds_ChildElementIsEmptyElement_FoldRegionCoversRootElement()
        {
            DomRegion region = helper.GetFirstFoldRegion();

            int       beginLine      = 1;
            int       endLine        = 3;
            int       beginCol       = 1;
            int       endCol         = 8;
            DomRegion expectedRegion = new DomRegion(beginLine, beginCol, endLine, endCol);

            Assert.AreEqual(expectedRegion, region);
        }
        public void GetFolds_OneRootXmlElement_FoldRegionContainsRootElement()
        {
            DomRegion region = helper.GetFirstFoldRegion();

            int       beginLine      = 1;
            int       beginColumn    = 1;
            int       endLine        = 2;
            int       endColumn      = 8;
            DomRegion expectedRegion = new DomRegion(beginLine, beginColumn, endLine, endColumn);

            Assert.AreEqual(expectedRegion, region);
        }
Beispiel #5
0
        public void GetFolds_ShowAttributesSetToTrue_FirstFoldRegionContainsRootElement()
        {
            GetFoldsWhenShowAttributesSetToTrue();

            DomRegion region = helper.GetFirstFoldRegion();

            int       beginLine      = 1;
            int       beginColumn    = 1;
            int       endLine        = 2;
            int       endColumn      = 8;
            DomRegion expectedRegion = new DomRegion(beginLine, beginColumn, endLine, endColumn);

            Assert.AreEqual(expectedRegion, region);
        }