public async Task Error404_ShouldReturn_404View() { var result = await _controller.Error404(); var viewResult = Assert.IsType <ViewResult>(result); Assert.Equal("404", viewResult.ViewName); }