Inheritance: IImageUriDecoder
Ejemplo n.º 1
0
        public void GetImageLocations_GivenTwitPicImageUrl_ReturnsLinkLocation()
        {
            ImageLocations locations = new TwitPicDecoder().GetImageLocations(new Uri("http://twitpic.com/1e10q"));

            Assert.Equal("http://twitpic.com/1e10q", locations.Link.ToString());
        }
Ejemplo n.º 2
0
        public void GetImageLocations_GivenTwitPicImageUrl_ReturnsThumbnailLocation(string url, string linkUrl)
        {
            ImageLocations locations = new TwitPicDecoder().GetImageLocations(new Uri(url));

            locations.Thumbnail.ToString().Should().Equal(linkUrl);
        }
Ejemplo n.º 3
0
        public void GetImageLocations_GivenTwitPicImageUrl_ReturnsLinkLocation(string url, string linkUrl)
        {
            ImageLocations locations = new TwitPicDecoder().GetImageLocations(new Uri(url));

            Assert.Equal(linkUrl, locations.Link.ToString());
        }