diff --git a/src/WinSW.Tests/DownloadTests.cs b/src/WinSW.Tests/DownloadTests.cs index c09f13d..fdeac77 100644 --- a/src/WinSW.Tests/DownloadTests.cs +++ b/src/WinSW.Tests/DownloadTests.cs @@ -210,10 +210,11 @@ namespace WinSW.Tests await this.TestClientServerAsync( async (source, dest) => { - var exception = await Assert.ThrowsAsync( + var exception = await Assert.ThrowsAsync( async () => await new Download(source, dest, true).PerformAsync()); - Assert.Equal(WebExceptionStatus.ProtocolError, exception.Status); + var inner = Assert.IsType(exception.InnerException); + Assert.Equal(WebExceptionStatus.ProtocolError, inner.Status); }, context => {