File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
tests/ModelContextProtocol.Tests/Client Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -178,9 +178,9 @@ public async Task WithName_ChangesToolName()
178178 JsonSerializerOptions options = new ( JsonSerializerOptions . Default ) ;
179179 IMcpClient client = await CreateMcpClientForServer ( ) ;
180180
181- var tool = ( await client . ListToolsAsync ( options , TestContext . Current . CancellationToken ) ) . FirstOrDefault ( ) ;
182- var originalName = tool ? . Name ;
183- var renamedTool = tool ? . WithName ( "RenamedTool" ) ;
181+ var tool = ( await client . ListToolsAsync ( options , TestContext . Current . CancellationToken ) ) . First ( ) ;
182+ var originalName = tool . Name ;
183+ var renamedTool = tool . WithName ( "RenamedTool" ) ;
184184
185185 Assert . NotNull ( renamedTool ) ;
186186 Assert . Equal ( "RenamedTool" , renamedTool . Name ) ;
You can’t perform that action at this time.
0 commit comments