Beispiel #1
0
 public void ImageLinksProduceCorrectHtml()
 {
     TestHelper.AssertHtml <ASP._Views_Tests_Images_cshtml>("test-image-links",
                                                            @"<a href=""http://www.google.com""><img src=""http://placehold.it/64x64"" alt=""Alt""></a>");
 }
Beispiel #2
0
 public void PlaceholderProducesCorrectHtml()
 {
     TestHelper.AssertHtml <ASP._Views_Tests_Images_cshtml>("test-placeholder",
                                                            @"<a href=""http://www.google.com""><img alt=""This is my placeholder"" src=""http://placehold.it/200x40/800000/CC0000&amp;text=Placeholder!""></a>");
 }
Beispiel #3
0
       public void ImagesProduceCorrectHtml()
       {
           TestHelper.AssertHtml <ASP._Views_Tests_Images_cshtml>("test-images",
                                                                  @"<img src=""http://placehold.it/64x64"">
 <img src=""http://placehold.it/64x64"" alt=""With Alt"">");
       }