diff --git a/src/libraries/System.Net.Http/tests/TrimmingTests/HttpClientTest.cs b/src/libraries/System.Net.Http/tests/TrimmingTests/HttpClientTest.cs deleted file mode 100644 index 7ded3b5b65be8..0000000000000 --- a/src/libraries/System.Net.Http/tests/TrimmingTests/HttpClientTest.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. - -using System; -using System.IO; -using System.Net.Http; -using System.Runtime.Versioning; -using System.Threading.Tasks; - -class Program -{ - [SupportedOSPlatformGuard("linux")] - [SupportedOSPlatformGuard("macOS")] - [SupportedOSPlatformGuard("Windows")] - private static bool IsHttp3Supported => (OperatingSystem.IsLinux() && !OperatingSystem.IsAndroid()) || OperatingSystem.IsWindows() || OperatingSystem.IsMacOS(); - - static async Task Main(string[] args) - { - using var client = new HttpClient(); - using var response = await client.GetAsync("https://www.microsoft.com"); - var result = await response.Content.ReadAsStringAsync(); - Console.WriteLine(result); - - const string quicDll = "System.Net.Quic.dll"; - var quicDllExists = File.Exists(Path.Combine(AppContext.BaseDirectory, quicDll)); - - if (IsHttp3Supported) - { - Console.WriteLine($"Expected {quicDll} is {(quicDllExists ? "present - OK" : "missing - BAD")}."); - return quicDllExists ? 100 : -1; - } - else - { - Console.WriteLine($"Unexpected {quicDll} is {(quicDllExists ? "present - BAD" : "missing - OK")}."); - return quicDllExists ? -1 : 100; - } - } -} diff --git a/src/libraries/System.Net.Http/tests/TrimmingTests/System.Net.Http.TrimmingTests.proj b/src/libraries/System.Net.Http/tests/TrimmingTests/System.Net.Http.TrimmingTests.proj index ea8bfeffaa4bb..25e882c38e520 100644 --- a/src/libraries/System.Net.Http/tests/TrimmingTests/System.Net.Http.TrimmingTests.proj +++ b/src/libraries/System.Net.Http/tests/TrimmingTests/System.Net.Http.TrimmingTests.proj @@ -3,11 +3,6 @@ - - browser-wasm - - true -