Skip to content

Commit 4e02be9

Browse files
committed
Add debug test
1 parent 70e8a3a commit 4e02be9

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test/TestableHttpClient.Tests/Utils/HttpRequestMessageFormatterTests.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System.IO;
22
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
34

45
using TestableHttpClient.Utils;
56

@@ -14,6 +15,18 @@ private static string FetchTestData(string filename, [CallerFilePath] string cal
1415
filePath += ".verified.http";
1516
return File.ReadAllText(filePath);
1617
}
18+
19+
[Fact]
20+
public void HttpRequestMessage_Debug_Test()
21+
{
22+
TestContext.Current.TestOutputHelper!.WriteLine(RuntimeInformation.FrameworkDescription);
23+
TestContext.Current.TestOutputHelper.WriteLine($"OS: {RuntimeInformation.OSDescription}");
24+
TestContext.Current.TestOutputHelper.WriteLine($"CLR/Environment version: {Environment.Version}");
25+
TestContext.Current.TestOutputHelper.WriteLine($"Assembly: {typeof(HttpRequestMessage).Assembly.Location}");
26+
using HttpRequestMessage request = new(HttpMethod.Get, "https://example.com");
27+
TestContext.Current.TestOutputHelper.WriteLine($"Default version: {request.Version}");
28+
}
29+
1730
[Fact]
1831
public void Format_NullRequest_CreatesExpectedString()
1932
{

0 commit comments

Comments
 (0)