Skip to content

Commit 90dd295

Browse files
Copilotstephentoub
andcommitted
Guard AllowedValues test methods with #if NET for net472 compatibility
Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
1 parent 970d260 commit 90dd295

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/ModelContextProtocol.Tests/Server/McpServerTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@ await Can_Handle_Requests(
322322
});
323323
}
324324

325+
#if NET
325326
[Fact]
326327
public async Task Completion_AutoPopulated_FromPromptAllowedValues()
327328
{
@@ -557,6 +558,7 @@ await transport.SendMessageAsync(new JsonRpcRequest
557558
await transport.DisposeAsync();
558559
await runTask;
559560
}
561+
#endif
560562

561563
[Fact]
562564
public async Task Can_Handle_ResourceTemplates_List_Requests()

0 commit comments

Comments
 (0)