Exemplo n.º 1
0
 public bool PropertyApplied_DoesNotThrow(string htmlFile, string cssFile, string property, string value)
 {
     using (var html = new AutoCheck.Core.Connectors.Html(GetSampleFile("html", htmlFile)))
         using (var css = new AutoCheck.Core.Connectors.Css(GetSampleFile(cssFile)))
         {
             return(css.PropertyApplied(html.HtmlDoc, property, value));
         }
 }
Exemplo n.º 2
0
 public void ValidateCss3AgainstW3C_Throws_DocumentInvalidException(string file)
 {
     using (var conn = new AutoCheck.Core.Connectors.Css(GetSampleFile(file)))
         Assert.Throws <DocumentInvalidException>(() => conn.ValidateCss3AgainstW3C());
 }
Exemplo n.º 3
0
 public void ValidateCss3AgainstW3C_DoesNotThrow(string file)
 {
     using (var conn = new AutoCheck.Core.Connectors.Css(GetSampleFile(file)))
         Assert.DoesNotThrow(() => conn.ValidateCss3AgainstW3C());
 }
Exemplo n.º 4
0
 public bool PropertyExists_DoesNotThrow(string file, string property, string value)
 {
     using (var css = new AutoCheck.Core.Connectors.Css(GetSampleFile(file)))
         return(css.PropertyExists(property, value));
 }