public void UploadFileTest() { // TODO change path to project specific string jobId = visionJob.JobId; Stream stream = new FileStream(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @".\Resources\label-dog.jpg"), FileMode.Open); var response = instance.UploadFile(jobId, stream); Assert.IsInstanceOf <InputResource>(response, "response is InputResource"); Assert.AreEqual("label-dog.jpg", response.StreamLocation.OriginalFilename); }