public void Init_CreateInstance_IsNotNull()
        {
            var environmentStub = Substitute.For <IEnvironment>();

            var obj = new PermissionMarkdownNodeParser(environmentStub);

            Assert.IsNotNull(obj);
        }
        public void Parse_ParseInputElement_EqualsExpected()
        {
            var input = this.XmlInput;

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

            environmentMock.NewLine.Returns(Environment.NewLine);

            var parser = new PermissionMarkdownNodeParser(environmentMock);

            var result = parser.ParseToMarkdown(input);

            var expected = String.Format(
                "{0}**Permision:**>*System.Security.PermissionSet*: Everyone can access this method.{0}",
                environmentMock.NewLine);

            StringAssert.AreEqualIgnoringCase(expected, result);
        }