File tree Expand file tree Collapse file tree
tests/ModelContextProtocol.Tests/Server Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -697,13 +697,13 @@ public void SupportsIconsInCreateOptions()
697697 Assert . Equal ( "https://example.com/icon.png" , tool . ProtocolTool . Icons [ 0 ] . Source ) ;
698698 Assert . Equal ( "image/png" , tool . ProtocolTool . Icons [ 0 ] . MimeType ) ;
699699 Assert . NotNull ( tool . ProtocolTool . Icons [ 0 ] . Sizes ) ;
700- Assert . Single ( tool . ProtocolTool . Icons [ 0 ] . Sizes ) ;
701- Assert . Equal ( "48x48" , tool . ProtocolTool . Icons [ 0 ] . Sizes [ 0 ] ) ;
700+ Assert . Single ( tool . ProtocolTool . Icons [ 0 ] . Sizes ! ) ;
701+ Assert . Equal ( "48x48" , tool . ProtocolTool . Icons [ 0 ] . Sizes ! [ 0 ] ) ;
702702 Assert . Equal ( "https://example.com/icon.svg" , tool . ProtocolTool . Icons [ 1 ] . Source ) ;
703703 Assert . Equal ( "image/svg+xml" , tool . ProtocolTool . Icons [ 1 ] . MimeType ) ;
704704 Assert . NotNull ( tool . ProtocolTool . Icons [ 1 ] . Sizes ) ;
705- Assert . Single ( tool . ProtocolTool . Icons [ 1 ] . Sizes ) ;
706- Assert . Equal ( "any" , tool . ProtocolTool . Icons [ 1 ] . Sizes [ 0 ] ) ;
705+ Assert . Single ( tool . ProtocolTool . Icons [ 1 ] . Sizes ! ) ;
706+ Assert . Equal ( "any" , tool . ProtocolTool . Icons [ 1 ] . Sizes ! [ 0 ] ) ;
707707 }
708708
709709 [ Fact ]
You can’t perform that action at this time.
0 commit comments