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); }
public void SetUp() { m_parser = new WikiRunParser(new[] { SmartQuoteWikiRun.CreateFactory() }); }