public void Should_Create_Img_Tag_Using_Width_and_Height_Color_Text_Format()
        {
            //arrange
            var vc = new ViewContext();
            vc.HttpContext = new FakeHttpContext();
            var html = new HtmlHelper(vc, new FakeViewDataContainer());
            string element;
            string expected = @"<img src=""http://placehold.it/300x400.PNG/000000/FFFFFF&amp;text=Sample"" />";

            //act
            element = html.Placehold(width: 300, height: 400, textColor: "FFFFFF", backgroundColor: "000000", text: "Sample", format: ImgFormat.PNG).ToString();

            //assert
            element.Should().Be(expected);
        }
        public void Should_Create_Img_Tag_Using_Width_and_Height()
        {
            //arrange
            var vc = new ViewContext();
            vc.HttpContext = new FakeHttpContext();
            var html = new HtmlHelper(vc, new FakeViewDataContainer());
            string element;
            string expected = @"<img src=""http://placehold.it/300x400"" />";

            //act
            element = html.Placehold(width: 300, height: 400).ToString();

            //assert
            element.Should().Be(expected);
        }
        public void Should_Create_Img_Tag_Using_Width_and_Height_Color_Text()
        {
            //arrange
            var vc = new ViewContext();

            vc.HttpContext = new FakeHttpContext();
            var    html = new HtmlHelper(vc, new FakeViewDataContainer());
            string element;
            string expected = @"<img src=""http://placehold.it/300x400/000000/FFFFFF&amp;text=Sample"" />";

            //act
            element = html.Placehold(width: 300, height: 400, textColor: "FFFFFF", backgroundColor: "000000", text: "Sample").ToString();

            //assert
            element.Should().Be(expected);
        }
        public void Should_Create_Img_Tag_Using_Width_and_Height_PNG_Format()
        {
            //arrange
            var vc = new ViewContext();

            vc.HttpContext = new FakeHttpContext();
            var    html = new HtmlHelper(vc, new FakeViewDataContainer());
            string element;
            string expected = @"<img src=""http://placehold.it/300x400.PNG"" />";

            //act
            element = html.Placehold(width: 300, height: 400, format: ImgFormat.PNG).ToString();

            //assert
            element.Should().Be(expected);
        }