public void Replace_should_handle_markdown_image_with_alt_text()
        {
            var post = new Post {
                Content = "[![test](http://www.site.com/weblog/wp-content/uploads/2010/08/image.jpg)]"
            };
            var sut = new CL.ImageReplacer();

            sut.Replace(post, SiteUrlHttp, ImageBaseUrl);

            string expectedYaml = $"[![test]({ImageBaseUrl}/image.jpg)]";

            Assert.Equal(expectedYaml, post.Content);
        }
        public void Replace_should_handle_https_urls_to_images()
        {
            var post = new Post
            {
                Content =
                    "[![](https://www.site.com/weblog/wp-content/uploads/2010/08/image.jpg \"test\")](https://www.site.com/weblog/wp-content/uploads/2010/08/image.jpg)"
            };
            var sut = new CL.ImageReplacer();

            sut.Replace(post, SiteUrlHttp, ImageBaseUrl);

            string expectedYaml = $"[![]({ImageBaseUrl}/image.jpg \"test\")]({ImageBaseUrl}/image.jpg)";

            Assert.Equal(expectedYaml, post.Content);
        }
        public void Replace_should_change_resources()
        {
            var post = new Post
            {
                Metadata = new PostMetadata
                {
                    Resources = new []
                    {
                        new Resource
                        {
                            Src = "/img/test1/image.jpg"
                        }
                    }
                }
            };
            var sut = new CL.ImageReplacer();

            sut.Replace(post, SiteUrlHttp, ImageBaseUrl);

            string expectedResourceSrc = $"{ImageBaseUrl}/image.jpg";

            Assert.Equal(expectedResourceSrc, post.Metadata.Resources.First().Src);
        }