@@ -683,8 +683,8 @@ public void SupportsIconsInCreateOptions()
683683 {
684684 var icons = new List < Icon >
685685 {
686- new ( ) { Source = "https://example.com/icon.png" , MimeType = "image/png" , Sizes = "48x48" } ,
687- new ( ) { Source = "https://example.com/icon.svg" , MimeType = "image/svg+xml" , Sizes = "any" }
686+ new ( ) { Source = "https://example.com/icon.png" , MimeType = "image/png" , Sizes = new List < string > { "48x48" } } ,
687+ new ( ) { Source = "https://example.com/icon.svg" , MimeType = "image/svg+xml" , Sizes = new List < string > { "any" } }
688688 } ;
689689
690690 McpServerTool tool = McpServerTool . Create ( ( ) => "test" , new McpServerToolCreateOptions
@@ -696,10 +696,14 @@ public void SupportsIconsInCreateOptions()
696696 Assert . Equal ( 2 , tool . ProtocolTool . Icons . Count ) ;
697697 Assert . Equal ( "https://example.com/icon.png" , tool . ProtocolTool . Icons [ 0 ] . Source ) ;
698698 Assert . Equal ( "image/png" , tool . ProtocolTool . Icons [ 0 ] . MimeType ) ;
699- Assert . Equal ( "48x48" , tool . ProtocolTool . Icons [ 0 ] . Sizes ) ;
699+ 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 ] ) ;
700702 Assert . Equal ( "https://example.com/icon.svg" , tool . ProtocolTool . Icons [ 1 ] . Source ) ;
701703 Assert . Equal ( "image/svg+xml" , tool . ProtocolTool . Icons [ 1 ] . MimeType ) ;
702- Assert . Equal ( "any" , tool . ProtocolTool . Icons [ 1 ] . Sizes ) ;
704+ 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 ] ) ;
703707 }
704708
705709 [ Fact ]
0 commit comments