Пример #1
0
 public void NoRunFactories()
 {
     WikiRunParser parser = new WikiRunParser(Enumerable.Empty<WikiRunFactory>());
     StringSegment text = new StringSegment("we're");
     List<WikiRun> runs = parser.Parse(text).ToList();
     Assert.AreEqual(1, runs.Count);
     Assert.AreEqual("we're", ((TextWikiRun) runs[0]).Text);
 }
Пример #2
0
 public void SetUp()
 {
     m_parser = new WikiRunParser(new[] { SmartQuoteWikiRun.CreateFactory() });
 }