public async Task ThrowsSteamKitWebExceptionOnUnsuccessfulWebResponseForManifest() { var configuration = SteamConfiguration.Create(x => x.WithHttpClientFactory(() => new HttpClient(new TeapotHttpMessageHandler()))); var steam = new SteamClient(configuration); var client = new Client(steam); var server = new Server { Protocol = Server.ConnectionProtocol.HTTP, Host = "localhost", VHost = "localhost", Port = 80 }; var ex = await Assert.ThrowsAsync <SteamKitWebRequestException>(() => client.DownloadManifestAsync(depotId: 0, manifestId: 0, manifestRequestCode: 0, server)); Assert.Equal(( HttpStatusCode )418, ex.StatusCode); }