Пример #1
0
        public void SkipCharacters()
        {
            var markdown = new StringMarkdownEnumerable("abcde");

            markdown.SkipCharacters(2);

            markdown.GetNextChar().Should().Be('c');
        }
        public void AtSpecifiedPosition_FindNextTag(string markdown, int position, Tag expectedTag,
                                                    TagPosition expectedPosition, int expectedPart)
        {
            var markdownEnumerable = new StringMarkdownEnumerable(markdown);

            markdownEnumerable.SkipCharacters(position);
            var expectedTagInfo = TagInfo.Create(expectedTag, new TagType(expectedPosition, expectedPart));

            var returnedTagInfo = markdownEnumerable.GetNextTag(new[] { expectedTagInfo });

            returnedTagInfo.Should().Be(expectedTagInfo);
        }