Inheritance: IImageUriDecoder
Esempio n. 1
0
        public void GetImageLocations_GivenYFrogImageUrl_ReturnsLinkLocation()
        {
            ImageLocations locations = new YFrogDecoder().GetImageLocations(new Uri("http://yfrog.com/0u6mcz"));

            Assert.Equal("http://yfrog.com/0u6mcz", locations.Link.ToString());
        }
Esempio n. 2
0
        public void GetImageLocations_GivenYFrogImageUrl_ReturnsThumbnailLocation(string url, string linkUrl)
        {
            ImageLocations locations = new YFrogDecoder().GetImageLocations(new Uri(url));

            Assert.Equal(linkUrl, locations.Thumbnail.ToString());
        }
Esempio n. 3
0
        public void GetImageLocations_GivenYFrogImageUrl_ReturnsLinkLocation(string url, string linkUrl)
        {
            ImageLocations locations = new YFrogDecoder().GetImageLocations(new Uri(url));

            locations.Link.ToString().Should().Equal(linkUrl);
        }