public async Task DownloadProgressReturnsEmptyResult() { var mockRepo = new Mock <IHostingEnvironment>(); mockRepo.Setup(repo => repo.WebRootPath).Returns(""); var controller = new ProgressController(mockRepo.Object, null); var result = await controller.DownloadProgress(); Assert.IsType <EmptyResult>(result); }