public void CanLoadCss([Values] IssueTheme theme) { var options = Factory.Get <IOptionsProvider>(); Assert.That(options, Is.Not.Null); Assert.That(options.Options, Is.Not.Null); options.Options.IssueTheme = theme; string css = StyleLoader.LoadCss(); Assert.That(css, Is.Not.Null); Assert.That(css, Is.Not.Empty); Assert.That(css, Does.Contain("body").IgnoreCase); }
public void TestConvert([Values] IssueTheme theme) { var options = Factory.Get <IOptionsProvider>(); Assert.That(options, Is.Not.Null); Assert.That(options.Options, Is.Not.Null); options.Options.IssueTheme = theme; var converter = new MarkdownConverter(); string html = converter.Convert("##Header##", typeof(string), null, CultureInfo.CurrentCulture) as string; Assert.That(html, Is.Not.Null); Assert.That(html, Contains.Substring("<h2>Header</h2>")); }