Audit protocol types (#892)

This commit is contained in:
Mackinnon Buck 2025-11-04 18:41:10 -05:00 • committed by GitHub
commit 121929da36
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -70,10 +70,10 @@ public class McpClientTests : ClientServerTestBase
}
[Theory]
[InlineData(null, null)]
[InlineData(null, 10)]
[InlineData(0.7f, 50)]
[InlineData(1.0f, 100)]
public async Task CreateSamplingHandler_ShouldHandleTextMessages(float? temperature, int? maxTokens)
public async Task CreateSamplingHandler_ShouldHandleTextMessages(float? temperature, int maxTokens)
{
// Arrange
var mockChatClient = new Mock<IChatClient>();
@ -472,7 +472,7 @@ public class McpClientTests : ClientServerTestBase
Assert.Equal("TestLogger", m.Logger);
string ? s = JsonSerializer.Deserialize<string>(m.Data.Value, McpJsonUtilities.DefaultOptions);
string? s = JsonSerializer.Deserialize<string>(m.Data.Value, McpJsonUtilities.DefaultOptions);
Assert.NotNull(s);
if (s.Contains("Information"))
@ -505,7 +505,7 @@ public class McpClientTests : ClientServerTestBase
"Error message",
"Information message",
"Warning message",
],
],
data.OrderBy(s => s));
}