Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        private string GetHtmlHeader()
        {
            var css = StyleLoader.LoadCss();

            return(string.Format(Properties.Resources.IssueHtmlHeader, css));
        }