[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsWindows), nameof(PlatformDetection.SupportsTls13))]
public void SupportedWindowsPlatforms_IsSupportedIsTrue()
{
- Assert.True(QuicListener.IsSupported);
- Assert.True(QuicConnection.IsSupported);
+ if (PlatformDetection.HasAssemblyFiles)
+ {
+ Assert.True(QuicListener.IsSupported);
+ Assert.True(QuicConnection.IsSupported);
+ }
+ else
+ {
+ // The above if check can be deleted when https://github.com/dotnet/runtime/issues/73290
+ // gets fixed and this test starts failing.
+ Assert.False(QuicListener.IsSupported);
+ Assert.False(QuicConnection.IsSupported);
+ }
}
}
}