public void GetExistentLandmarkImage() { Task <IActionResult> task = controller.GetLandmarkImage(testImage); task.Wait(); IActionResult result = task.Result; FileStreamResult stream = result as FileStreamResult; Assert.IsNotNull(stream); Assert.AreEqual("image/jpeg", stream.ContentType); }