public void createMdNodeWithHyperlink(string input, MdNode expectedMdNode) { var builder = new MdTreeBuilder(input); var tree = builder.BuildTree(); tree.Root.InnerMdNodes[0].ShouldBeEquivalentTo(expectedMdNode); }
void createMdNodeWithInnerTags(string input, MdNode expectedInnerMdNode) { var builder = new MdTreeBuilder(input); var tree = builder.BuildTree(); tree.Root.InnerMdNodes.ShouldAllBeEquivalentTo(expectedInnerMdNode); }
public void createMdNodeWithInnerTag(string input, MdNode expectedInnerMdNode) { var builder = new MdTreeBuilder(input); var mdNode = builder.BuildTree().Root.InnerMdNodes[0]; mdNode.InnerMdNodes.ShouldAllBeEquivalentTo(expectedInnerMdNode); }
public void createMdTreeFromMdLine(MdLine input, MdNode expectedMdNode) { var builder = new MdTreeBuilder(input); var tree = builder.BuildTree(); tree.Root.InnerMdNodes[0].ShouldBeEquivalentTo(expectedMdNode); }
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)); }