Clean up (use of) McpException and McpTransportException (#321)
* Clean up (use of) McpException * Replace McpTransportException with InvalidOperationException * Add cancellation test
This commit is contained in:
parent
d65ddce268
commit
7d77be68cf
1 changed files with 231 additions and 219 deletions
|
|
@ -95,6 +95,6 @@ public class McpServerResourceTests
|
|||
};
|
||||
});
|
||||
var sp = services.BuildServiceProvider();
|
||||
Assert.Throws<McpException>(() => sp.GetRequiredService<IMcpServer>());
|
||||
Assert.Throws<InvalidOperationException>(sp.GetRequiredService<IMcpServer>);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue