File tree Expand file tree Collapse file tree 1 file changed +0
-24
lines changed
tests/ModelContextProtocol.Tests/Protocol/Auth Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -87,28 +87,4 @@ public void ResourceMetadata_JsonSerialization_Works()
8787 Assert . Contains ( "mcp.prompts" , deserialized . ScopesSupported ! ) ;
8888 Assert . Equal ( "https://example.com/docs" , deserialized . ResourceDocumentation ! . ToString ( ) ) ;
8989 }
90-
91- [ Fact ]
92- public void ToResourceMetadata_ConversionWorks ( )
93- {
94- // Arrange
95- var prm = new ProtectedResourceMetadata
96- {
97- Resource = new Uri ( "http://localhost:7071" ) ,
98- AuthorizationServers = [ new Uri ( "https://login.microsoftonline.com/tenant/v2.0" ) ] ,
99- BearerMethodsSupported = [ "header" ] ,
100- ScopesSupported = [ "mcp.tools" , "mcp.prompts" ] ,
101- ResourceDocumentation = new Uri ( "https://example.com/docs" )
102- } ;
103-
104- // Act
105- var resourceMetadata = prm . ToResourceMetadata ( ) ;
106-
107- // Assert
108- Assert . Equal ( prm . Resource , resourceMetadata . Resource ) ;
109- Assert . Equal ( prm . AuthorizationServers , resourceMetadata . AuthorizationServers ) ;
110- Assert . Equal ( prm . BearerMethodsSupported , resourceMetadata . BearerMethodsSupported ) ;
111- Assert . Equal ( prm . ScopesSupported , resourceMetadata . ScopesSupported ) ;
112- Assert . Equal ( prm . ResourceDocumentation , resourceMetadata . ResourceDocumentation ) ;
113- }
11490}
You can’t perform that action at this time.
0 commit comments