Upgrade to xunit.v3 (#8)

* Upgrade to xunit.v3

* Use Assert.Skip where applicable.

---------

Co-authored-by: Eirik Tsarpalis <eirik.tsarpalis@gmail.com>
This commit is contained in:
Stephen Toub 2025-03-20 10:19:35 -04:00 • committed by GitHub
commit 27ba8b1b6a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -95,7 +95,7 @@ public class SseClientTransportTests
};
};
await transport.ConnectAsync();
await transport.ConnectAsync(TestContext.Current.CancellationToken);
}
[Fact]
@ -174,7 +174,7 @@ public class SseClientTransportTests
}
};
await transport.ConnectAsync();
await transport.ConnectAsync(TestContext.Current.CancellationToken);
await transport.SendMessageAsync(new JsonRpcRequest() { Method = "initialize", Id = RequestId.FromNumber(44) }, CancellationToken.None);
Assert.True(true);
@ -213,7 +213,7 @@ public class SseClientTransportTests
}
};
await transport.ConnectAsync();
await transport.ConnectAsync(TestContext.Current.CancellationToken);
await transport.SendMessageAsync(new JsonRpcRequest() { Method = "initialize", Id = RequestId.FromNumber(44) }, CancellationToken.None);
Assert.True(true);
@ -251,7 +251,7 @@ public class SseClientTransportTests
throw new IOException("Abort");
};
await transport.ConnectAsync();
await transport.ConnectAsync(TestContext.Current.CancellationToken);
Assert.True(transport.MessageReader.TryRead(out var message));
Assert.NotNull(message);
Assert.IsType<JsonRpcRequest>(message);