public void DeleteFileTest() { UploadTest(); var result = docController.DeleteFileAsync("Nomination form.pdf").Result; Assert.True(((Microsoft.AspNetCore.Mvc.ObjectResult)result).Value.ToString() == "File deleted"); }