コード例 #1
0
ファイル: Wiki2HtmlTest.cs プロジェクト: Ashod/WikiDesk
 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);
 }
コード例 #2
0
 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);
 }
コード例 #3
0
ファイル: Wiki2HtmlTest.cs プロジェクト: Ashod/WikiDesk
 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);
 }