Exemple #1
0
        public void RawTagOffsetsAreCorrect()
        {
            var       content = File.ReadAllText(@"E:\Data\Source\CS\ParcusBudget\SourceAssets\test\reg-trash-alt-red.svg");
            TagParser TP      = new TagParser(true, true, '<', '>')
            {
                Content = content
            };

            TP.ParseContent();
            var svgNdx = TP.FindTag("svg");

            Assert.AreEqual(1, svgNdx, "svg tag index != 1");
            var tag = TP.GetTagInfo(svgNdx);

            Assert.AreEqual(55, tag.EleStart, "Ele start not 56");
            Assert.AreEqual(346, tag.EleEnd, "Ele end not 346");
        }