Exemple #1
0
 private static void TestConvertFiles(string baseFilename)
 {
     Wiki2Html converter = new Wiki2Html(Config, null, OnResolveTemplate, null);
     string nameSpace = string.Empty;
     string title = "TestPage";
     string wikicode = File.ReadAllText(Path.Combine(RootPath, baseFilename + ".wiki"));
     string html = converter.Convert(ref nameSpace, ref title, wikicode);
     string expected = File.ReadAllText(Path.Combine(RootPath, baseFilename + ".html"));
     Assert.AreEqual(expected, html);
 }
 internal static void TestConvert(string wikicode, string expected)
 {
     Wiki2Html converter = new Wiki2Html(config_, OnResolveWikiLinks, OnResolveTemplate, null);
     string nameSpace = string.Empty;
     string title = "TestPage";
     string html = converter.Convert(ref nameSpace, ref title, wikicode);
     Assert.AreEqual(expected, html);
 }
Exemple #3
0
 private static void TestConvert(string wikicode, string expected)
 {
     Wiki2Html converter = new Wiki2Html(Config);
     string nameSpace = string.Empty;
     string title = "TestPage";
     string html = converter.Convert(ref nameSpace, ref title, wikicode);
     Assert.AreEqual(expected, html);
 }