From 554b2c71454245865fa16397626626cd48dd9e16 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 1 Feb 2023 12:45:32 -0800 Subject: [PATCH] Fix conditions to bin place msquic.dll for Windows builds. (#81492) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Marie Píchová --- src/libraries/System.Net.Quic/src/System.Net.Quic.csproj | 1 - .../tests/FunctionalTests/MsQuicPlatformDetectionTests.cs | 7 +++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/libraries/System.Net.Quic/src/System.Net.Quic.csproj b/src/libraries/System.Net.Quic/src/System.Net.Quic.csproj index 66018e46e00f0..a7ef3b5ec87c7 100644 --- a/src/libraries/System.Net.Quic/src/System.Net.Quic.csproj +++ b/src/libraries/System.Net.Quic/src/System.Net.Quic.csproj @@ -143,7 +143,6 @@ diff --git a/src/libraries/System.Net.Quic/tests/FunctionalTests/MsQuicPlatformDetectionTests.cs b/src/libraries/System.Net.Quic/tests/FunctionalTests/MsQuicPlatformDetectionTests.cs index 2d0bc54044556..1fbc8ecfb57ba 100644 --- a/src/libraries/System.Net.Quic/tests/FunctionalTests/MsQuicPlatformDetectionTests.cs +++ b/src/libraries/System.Net.Quic/tests/FunctionalTests/MsQuicPlatformDetectionTests.cs @@ -19,5 +19,12 @@ public void UnsupportedPlatforms_ThrowsPlatformNotSupportedException() Assert.ThrowsAsync(async () => await CreateQuicListener()); Assert.ThrowsAsync(async () => await CreateQuicConnection(new IPEndPoint(IPAddress.Loopback, 0))); } + + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsWindows), nameof(PlatformDetection.SupportsTls13))] + public void SupportedWindowsPlatforms_IsSupportedIsTrue() + { + Assert.True(QuicListener.IsSupported); + Assert.True(QuicConnection.IsSupported); + } } }