public async Task UploadImageUrlAsync_Equal()
{
var mockUrl = "https://api.imgur.com/3/image";
var mockResponse = new HttpResponseMessage(HttpStatusCode.OK)
{
Content = new StringContent(MockImageEndpointResponses.Imgur.UploadImage)
};
var client = new ImgurClient("123", "1234");
var endpoint = new ImageEndpoint(client, new HttpClient(new MockHttpMessageHandler(mockUrl, mockResponse)));
var image = await endpoint.UploadImageUrlAsync("http://i.imgur.com/kiNOcUl.gif").ConfigureAwait(false);
Assert.NotNull(image);
Assert.Equal(true, image.Animated);
Assert.Equal(0, image.Bandwidth);
Assert.Equal(new DateTimeOffset(new DateTime(2015, 8, 23, 23, 43, 31, DateTimeKind.Utc)), image.DateTime);
Assert.Equal("nGxOKC9ML6KyTWQ", image.DeleteHash);
Assert.Equal("Description Test", image.Description);
Assert.Equal(false, image.Favorite);
Assert.Equal("http://i.imgur.com/kiNOcUl.gifv", image.Gifv);
Assert.Equal(189, image.Height);
Assert.Equal("kiNOcUl", image.Id);
Assert.Equal("http://i.imgur.com/kiNOcUl.gif", image.Link);
Assert.Equal(true, image.Looping);
Assert.Equal("http://i.imgur.com/kiNOcUl.mp4", image.Mp4);
Assert.Equal("", image.Name);
Assert.Equal(null, image.Nsfw);
Assert.Equal(null, image.Section);
Assert.Equal(1038889, image.Size);
Assert.Equal("Title Test", image.Title);
Assert.Equal("image/gif", image.Type);
Assert.Equal(0, image.Views);
Assert.Equal(null, image.Vote);
Assert.Equal(290, image.Width);
}