Exemple #1
0
            public void Will_have_link_tag()
            {
                var icon = new ShortcutIcon(new ReferencedFile {
                    Path = "file.png"
                });

                Assert.True(icon.ToString().StartsWith("<link"));
            }
Exemple #2
0
            public void Will_have_href_that_points_to_file()
            {
                var icon = new ShortcutIcon(new ReferencedFile {
                    Path = "file.png"
                });

                Assert.Equal("file:///file.png", icon.Attributes["href"]);
            }
Exemple #3
0
            public void Will_have_png_type()
            {
                var icon = new ShortcutIcon(new ReferencedFile {
                    Path = "file.png"
                });

                Assert.Equal("image/png", icon.Attributes["type"]);
            }
Exemple #4
0
            public void Will_have_shortcut_icon_relation()
            {
                var icon = new ShortcutIcon(new ReferencedFile {
                    Path = "file.png"
                });

                Assert.Equal("shortcut icon", icon.Attributes["rel"]);
            }
            public void Will_have_href()
            {
                var icon = new ShortcutIcon(new ReferencedFile {
                    PathForUseInTestHarness = "file.png"
                });

                Assert.Equal("file.png", icon.Attributes["href"]);
            }
 public void Will_have_link_tag()
 {
     var icon = new ShortcutIcon(new ReferencedFile { Path = "file.png" });
     Assert.True(icon.ToString().StartsWith("<link"));
 }
 public void Will_have_href_that_points_to_file()
 {
     var icon = new ShortcutIcon(new ReferencedFile { Path = "file.png" });
     Assert.Equal("file:///file.png", icon.Attributes["href"]);
 }
 public void Will_have_png_type()
 {
     var icon = new ShortcutIcon(new ReferencedFile { Path = "file.png" });
     Assert.Equal("image/png", icon.Attributes["type"]);
 }
 public void Will_have_shortcut_icon_relation()
 {
     var icon = new ShortcutIcon(new ReferencedFile { Path = "file.png" });
     Assert.Equal("shortcut icon", icon.Attributes["rel"]);
 }