Beispiel #1
0
        public void createMdNodeWithHyperlink(string input, MdNode expectedMdNode)
        {
            var builder = new MdTreeBuilder(input);
            var tree    = builder.BuildTree();

            tree.Root.InnerMdNodes[0].ShouldBeEquivalentTo(expectedMdNode);
        }
Beispiel #2
0
        void createMdNodeWithInnerTags(string input, MdNode expectedInnerMdNode)
        {
            var builder = new MdTreeBuilder(input);
            var tree    = builder.BuildTree();

            tree.Root.InnerMdNodes.ShouldAllBeEquivalentTo(expectedInnerMdNode);
        }
Beispiel #3
0
        public void createMdNodeWithInnerTag(string input, MdNode expectedInnerMdNode)
        {
            var builder = new MdTreeBuilder(input);
            var mdNode  = builder.BuildTree().Root.InnerMdNodes[0];

            mdNode.InnerMdNodes.ShouldAllBeEquivalentTo(expectedInnerMdNode);
        }
Beispiel #4
0
        public void createMdTreeFromMdLine(MdLine input, MdNode expectedMdNode)
        {
            var builder = new MdTreeBuilder(input);
            var tree    = builder.BuildTree();

            tree.Root.InnerMdNodes[0].ShouldBeEquivalentTo(expectedMdNode);
        }
Beispiel #5
0
        public void workLinearly()
        {
            var input = CreateBigString();

            var timer = new Stopwatch();

            timer.Start();
            var builder = new MdTreeBuilder(input);

            builder.BuildTree();
            timer.Stop();

            Assert.That(timer.ElapsedMilliseconds, Is.LessThan(1000));
        }