コード例 #1
0
        public void ParseDocumentAndConvertToMarkup()
        {
            var result = _parser.Parse(rawDocumentSdlCreateWindow, convertToMarkup: true);

            string resultConvertedToString   = string.Join(",", result.OrderBy(kv => kv.Key));
            string expectedConvertedToString = string.Join(",", expectedResultSdlCreateWindowAsMarkup.OrderBy(kv => kv.Key));

            Assert.AreEqual(resultConvertedToString, expectedConvertedToString);
        }
コード例 #2
0
 public Dictionary <string, string> GetWikiItemReply(string message, out SDLWikiApiItem wikiItem)
 {
     wikiItem = _wikiRepo.GetWikiItem(message, out _);
     if (wikiItem != null)
     {
         return(_parser.Parse(wikiItem.RawText, convertToMarkup: true));
     }
     else
     {
         return(null);
     }
 }