Enable netfx testing. (#588)
* Enable netfx testing. * Skip impacted tests and re-enable netfx testing. * Remove redundant comment. * Remove unnecessary project configuration. * Simplify test server copying.
This commit is contained in:
parent
c0440760ac
commit
aa75f6f37e
1 changed files with 1940 additions and 53 deletions
|
|
@ -7,6 +7,8 @@ namespace ModelContextProtocol.Tests.Transport;
|
|||
|
||||
public class StdioClientTransportTests(ITestOutputHelper testOutputHelper) : LoggedTest(testOutputHelper)
|
||||
{
|
||||
public static bool IsStdErrCallbackSupported => !PlatformDetection.IsMonoRuntime;
|
||||
|
||||
[Fact]
|
||||
public async Task CreateAsync_ValidProcessInvalidServer_Throws()
|
||||
{
|
||||
|
|
@ -19,8 +21,8 @@ public class StdioClientTransportTests(ITestOutputHelper testOutputHelper) : Log
|
|||
IOException e = await Assert.ThrowsAsync<IOException>(() => McpClientFactory.CreateAsync(transport, loggerFactory: LoggerFactory, cancellationToken: TestContext.Current.CancellationToken));
|
||||
Assert.Contains(id, e.ToString());
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
[Fact(Skip = "Platform not supported by this test.", SkipUnless = nameof(IsStdErrCallbackSupported))]
|
||||
public async Task CreateAsync_ValidProcessInvalidServer_StdErrCallbackInvoked()
|
||||
{
|
||||
string id = Guid.NewGuid().ToString("N");
|
||||
|
|
|
|||
Loading…
Reference in a new issue