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()); }
public void GetImageLocations_GivenYFrogImageUrl_ReturnsThumbnailLocation(string url, string linkUrl) { ImageLocations locations = new YFrogDecoder().GetImageLocations(new Uri(url)); Assert.Equal(linkUrl, locations.Thumbnail.ToString()); }
public void GetImageLocations_GivenYFrogImageUrl_ReturnsLinkLocation(string url, string linkUrl) { ImageLocations locations = new YFrogDecoder().GetImageLocations(new Uri(url)); locations.Link.ToString().Should().Equal(linkUrl); }