Ejemplo n.º 1
0
            public void Will_have_combined_start_and_end_tag()
            {
                var stylesheet = new ExternalStylesheet(new ReferencedFile {
                    Path = "file.css"
                });

                Assert.Contains("/>", stylesheet.ToString());
            }
Ejemplo n.º 2
0
            public void Will_have_link_tag()
            {
                var stylesheet = new ExternalStylesheet(new ReferencedFile {
                    Path = "file.css"
                });

                Assert.Contains("<link", stylesheet.ToString());
            }
Ejemplo n.º 3
0
            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"]);
            }
Ejemplo n.º 4
0
            public void Will_have_css_type()
            {
                var stylesheet = new ExternalStylesheet(new ReferencedFile {
                    Path = "file.css"
                });

                Assert.Equal("text/css", stylesheet.Attributes["type"]);
            }
Ejemplo n.º 5
0
            public void Will_have_stylesheet_relation()
            {
                var stylesheet = new ExternalStylesheet(new ReferencedFile {
                    Path = "file.css"
                });

                Assert.Equal("stylesheet", stylesheet.Attributes["rel"]);
            }
Ejemplo n.º 6
0
            public void Will_have_href()
            {
                var stylesheet = new ExternalStylesheet(new ReferencedFile {
                    PathForUseInTestHarness = "file.css"
                });

                Assert.Equal("file.css", stylesheet.Attributes["href"]);
            }
Ejemplo n.º 7
0
 public void Will_have_combined_start_and_end_tag()
 {
     var stylesheet = new ExternalStylesheet(new ReferencedFile { Path = "file.css" });
     Assert.Contains("/>", stylesheet.ToString());
 }
Ejemplo n.º 8
0
 public void Will_have_link_tag()
 {
     var stylesheet = new ExternalStylesheet(new ReferencedFile { Path = "file.css" });
     Assert.Contains("<link", stylesheet.ToString());
 }
Ejemplo n.º 9
0
 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"]);
 }
Ejemplo n.º 10
0
 public void Will_have_css_type()
 {
     var stylesheet = new ExternalStylesheet(new ReferencedFile { Path = "file.css" });
     Assert.Equal("text/css", stylesheet.Attributes["type"]);
 }
Ejemplo n.º 11
0
 public void Will_have_stylesheet_relation()
 {
     var stylesheet = new ExternalStylesheet(new ReferencedFile { Path = "file.css"});
     Assert.Equal("stylesheet", stylesheet.Attributes["rel"]);
 }