public async void Should_Return_All_Forecasts() { // arrange var expected = fixture.forecastList; // act var result = await controller.GetList(); // assert Assert.IsType <ActionResult <List <WeatherForecast> > >(result); Assert.Equal(expected, result.Value); // Using Value since ReturnType is ActionResult<List<WeatherForecast>>, so we need to access the value }