public async Task TestGetImageDetails() { var imgurClient = AuthenticationHelpers.CreateClientAuthenticatedImgurClient(); var imageEndpoint = new ImageEndpoint(imgurClient); var response = await imageEndpoint.GetImageDetailsAsync("F1sUnHq"); // Assert the Reponse Assert.IsNotNull(response.Data); Assert.AreEqual(response.Success, true); Assert.AreEqual(response.Status, HttpStatusCode.OK); // Asset the Data Assert.AreEqual(response.Data.Type, "image/gif"); Assert.AreEqual(response.Data.Id, "F1sUnHq"); Assert.AreEqual(response.Data.Height, 172); Assert.AreEqual(response.Data.Width, 230); Assert.AreEqual(response.Data.Animated, true); Assert.AreEqual(response.Data.Link, "http://i.imgur.com/F1sUnHq.gif"); Assert.AreEqual(response.Data.AddedToGallery, new DateTime(2014, 2, 21, 23, 41, 46)); }