Пример #1
0
        public void ReverseStackToToken_on_stack_with_token_and_two_texts_should_give_list_of_tokens_in_right_order()
        {
            var stack = new Stack<string>();
            stack.Push("__");
            stack.Push("text1");
            stack.Push("text2");
            var expectedTokens = new List<string>() { "__", "text1", "text2", "__" };

            var processor = new MarkdownProcessor(new HtmlFormatter());
            var result = processor.ReverseStackToToken(ref stack, "__");

            CollectionAssert.AreEqual(expectedTokens, result);
        }