mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
Update test WebException to HttpRequestException
This commit is contained in:
@@ -25,4 +25,8 @@
|
||||
<ProjectReference Include="..\src\Squirrel\Squirrel.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Reference Include="System.Net.Http" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -11,6 +11,7 @@ using Squirrel.Tests.TestHelpers;
|
||||
using Xunit;
|
||||
using System.Net;
|
||||
using Squirrel.NuGet;
|
||||
using System.Net.Http;
|
||||
|
||||
namespace Squirrel.Tests
|
||||
{
|
||||
@@ -314,7 +315,7 @@ namespace Squirrel.Tests
|
||||
{
|
||||
// This should result in a WebException (which gets caught) unless you can actually access http://lol
|
||||
using (var fixture = new UpdateManager("http://lol", "theApp")) {
|
||||
await Assert.ThrowsAsync(typeof(WebException), () => fixture.CheckForUpdate());
|
||||
await Assert.ThrowsAsync(typeof(HttpRequestException), () => fixture.CheckForUpdate());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user