Fix warnings

This commit is contained in:
Ben Olden-Cooligan 2024-09-05 12:51:05 -07:00
parent fb5a0c9234
commit 21d5db8d04
4 changed files with 5 additions and 4 deletions

View File

@ -21,6 +21,7 @@
<PackageReference Include="Polyfill" Version="4.9.0" PrivateAssets="all" />
<PackageReference Include="StandardSocketsHttpHandler" Version="2.2.0.8" />
<PackageReference Include="System.Net.Http" Version="4.3.4" />
<PackageReference Include="System.Private.Uri" Version="4.3.2" />
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
</ItemGroup>

View File

@ -10,7 +10,7 @@ using Xunit.Abstractions;
namespace NAPS2.Sdk.Tests.Remoting;
public class FallbackScanServerTests(ITestOutputHelper testOutputHelper) : ScanServerTestsBase(testOutputHelper,
EsclSecurityPolicy.None, new X509Certificate2(BinaryResources.testcert))
EsclSecurityPolicy.None, X509CertificateLoader.LoadPkcs12(BinaryResources.testcert, null))
{
[Fact(Timeout = TIMEOUT)]
public async Task ScanFallbackFromHttpsToHttp()

View File

@ -7,8 +7,8 @@ using Xunit.Abstractions;
namespace NAPS2.Sdk.Tests.Remoting;
public class ManualIpScanServerTests(ITestOutputHelper testOutputHelper)
: ScanServerTestsBase(testOutputHelper, EsclSecurityPolicy.None, new X509Certificate2(BinaryResources.testcert))
public class ManualIpScanServerTests(ITestOutputHelper testOutputHelper) : ScanServerTestsBase(testOutputHelper,
EsclSecurityPolicy.None, X509CertificateLoader.LoadPkcs12(BinaryResources.testcert, null))
{
[Fact(Timeout = TIMEOUT)]
public async Task ScanHttpIpv4()

View File

@ -10,7 +10,7 @@ using Xunit.Abstractions;
namespace NAPS2.Sdk.Tests.Remoting;
public class TlsScanServerTests(ITestOutputHelper testOutputHelper) : ScanServerTestsBase(testOutputHelper,
EsclSecurityPolicy.RequireHttps, new X509Certificate2(BinaryResources.testcert))
EsclSecurityPolicy.RequireHttps, X509CertificateLoader.LoadPkcs12(BinaryResources.testcert, null))
{
[Fact(Timeout = TIMEOUT)]
public async Task FindDevice()