public async Task TestDeleteAccountImage() { var imgurClient = await AuthenticationHelpers.CreateOAuth2AuthenticatedImgurClient(); var accountEndpoint = new AccountEndpoint(imgurClient); var imageEndpoint = new ImageEndpoint(imgurClient); // Upload Image var filePath = VariousFunctions.GetTestsAssetDirectory() + @"\upload-image-example.jpg"; var imageBinary = File.ReadAllBytes(filePath); var image = await imageEndpoint.UploadImageFromBinaryAsync(imageBinary); // Delete Image var deletedImage = await accountEndpoint.DeleteAccountImageAsync(image.Data.DeleteHash); // Assert the Response Assert.IsNotNull(deletedImage.Data); Assert.AreEqual(deletedImage.Success, true); Assert.AreEqual(deletedImage.Status, HttpStatusCode.OK); Assert.AreEqual(deletedImage.Data, true); }