GenerateFile() public method

public GenerateFile ( OutputType, outputType ) : void
outputType OutputType,
return void
Exemplo n.º 1
0
        public void GenerateFile_Markdown_OutputsHtml()
        {
            var output = generator.GenerateFile(".",
                                                new FileLocation("directory/index.md"),
                                                "Hello",
                                                Array.Empty <string>(),
                                                new Dictionary <string, IBuffer <ImmutableDictionary <string, object> > >().ToImmutableDictionary()
                                                );

            Assert.AreEqual(@"directory/index.html", output.Name.FullyQualifiedName);
            AssertHelper.AreEqualIgnoringNewLines("<p>Hello</p>\r\n", output.Output);
        }
Exemplo n.º 2
0
        private FileInfo GenerateFile()
        {
            var generator = new FileGenerator(_maxChunkSize);

            return(generator.GenerateFile(_chunksCount));
        }