From bc4be8a2ab4d662410d77d1c9855c3ef81d9964f Mon Sep 17 00:00:00 2001 From: Kerry Jiang Date: Sat, 25 May 2024 14:36:21 -0700 Subject: [PATCH] test quic support --- .github/workflows/build.yml | 2 +- test/SuperSocket.Tests/QuicTest.cs | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 test/SuperSocket.Tests/QuicTest.cs diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0bdc42c10..65bc58342 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -51,4 +51,4 @@ jobs: if: runner.os != 'Linux' run: | cd test/SuperSocket.Tests - dotnet test --filter FullyQualifiedName\!~QuicHostConfigurator \ No newline at end of file + dotnet test --filter FullyQualifiedName\!~TestQuicSupport \ No newline at end of file diff --git a/test/SuperSocket.Tests/QuicTest.cs b/test/SuperSocket.Tests/QuicTest.cs new file mode 100644 index 000000000..725f37cb4 --- /dev/null +++ b/test/SuperSocket.Tests/QuicTest.cs @@ -0,0 +1,17 @@ +using System; +using System.Net.Quic; +using Xunit; + +namespace SuperSocket.Tests +{ + public class QuicTest + { + [Fact] + public void TestQuicSupport() + { +#pragma warning disable CA2252,CA1416 + Assert.True(QuicListener.IsSupported, "QUIC is not supported."); +#pragma warning restore CA2252,CA1416 + } + } +} \ No newline at end of file