From d9837d432c4006fe9614aaa3a652654b65ba7a4a Mon Sep 17 00:00:00 2001 From: Next Turn <45985406+nxtn@users.noreply.github.com> Date: Mon, 9 Aug 2021 13:28:50 +0800 Subject: [PATCH] Fix tests --- src/WinSW.Tests/DownloadTests.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 => {