public void Init_CreateInstance_IsNotNull() { var environmentStub = Substitute.For <IEnvironment>(); var markdownTypeStub = MarkdownType.GithubFlavoredMarkdown; var obj = new SeeMarkdownNodeParser(environmentStub, markdownTypeStub); Assert.IsNotNull(obj); }
public void Parse_ParseInputElement_EqualsExpected() { var input = this.XmlInput; var environmentMock = Substitute.For <IEnvironment>(); environmentMock.NewLine.Returns(Environment.NewLine); var markdownType = MarkdownType.GithubFlavoredMarkdown; var parser = new SeeMarkdownNodeParser(environmentMock, markdownType); var result = parser.ParseToMarkdown(input); var expected = String.Format( "**System.Console.WriteLine(System.String)**{0}", environmentMock.NewLine); StringAssert.AreEqualIgnoringCase(expected, result); }