public void InitParser_CreateObject_CheckForNull()
        {
            var environentStub = Substitute.For <IEnvironment>();
            var parserPoolStub = Substitute.For <IParserPool>();

            var parser = new ListMarkdownNodeParser(environentStub, parserPoolStub, 0);

            Assert.IsNotNull(parser);
        }
        public void ParseToMarkdown_ParseListElement_StringEqualsExpected()
        {
            var input = this.XmlElementInput;

            var environentStub = Substitute.For <IEnvironment>();

            environentStub.NewLine.Returns(Environment.NewLine);
            var parserPoolStub = Substitute.For <IParserPool>();

            var parser = new ListMarkdownNodeParser(environentStub, parserPoolStub, 0);

            var result = parser.ParseToMarkdown(input);

            var expected = String.Format("**List:**{0}- Item 1.{0}- Item 2.", environentStub.NewLine);

            Assert.AreEqual(expected, result);
        }