public void Will_have_combined_start_and_end_tag() { var stylesheet = new ExternalStylesheet(new ReferencedFile { Path = "file.css" }); Assert.Contains("/>", stylesheet.ToString()); }
public void Will_have_link_tag() { var stylesheet = new ExternalStylesheet(new ReferencedFile { Path = "file.css" }); Assert.Contains("<link", stylesheet.ToString()); }
public void Will_have_href_that_points_to_file() { var stylesheet = new ExternalStylesheet(new ReferencedFile { Path = "file.css" }); Assert.Equal("file:///file.css", stylesheet.Attributes["href"]); }
public void Will_have_css_type() { var stylesheet = new ExternalStylesheet(new ReferencedFile { Path = "file.css" }); Assert.Equal("text/css", stylesheet.Attributes["type"]); }
public void Will_have_stylesheet_relation() { var stylesheet = new ExternalStylesheet(new ReferencedFile { Path = "file.css" }); Assert.Equal("stylesheet", stylesheet.Attributes["rel"]); }
public void Will_have_href() { var stylesheet = new ExternalStylesheet(new ReferencedFile { PathForUseInTestHarness = "file.css" }); Assert.Equal("file.css", stylesheet.Attributes["href"]); }
public void Will_have_stylesheet_relation() { var stylesheet = new ExternalStylesheet(new ReferencedFile { Path = "file.css"}); Assert.Equal("stylesheet", stylesheet.Attributes["rel"]); }