public async void HealthStatus_InvalidResponse(int httpStatus) { ESErrorConnection connection = new ESErrorConnection(httpStatus); ESBestBetsHealthService service = GetHealthService(connection); bool res = await service.IsHealthy(); Assert.False(res); }
[InlineData("unexpected")] // i.e. "Unexpected color" public async void HealthStatus_Unhealthy(string datafile) { ESHealthConnection connection = new ESHealthConnection(datafile); ESBestBetsHealthService service = GetHealthService(connection); bool isHealthy = await service.IsHealthy(); Assert.False(isHealthy); }