csharp-sdk/tests/ModelContextProtocol.Tests/Transport
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Copilot 25f080115d Apply review feedback: replace _getHttpResponseCompleted with _disposed; rewrite test
- Remove _getHttpResponseCompleted and rely on _httpSseWriter being null as the signal that the GET response stream has been released. Null out _httpSseWriter in DisposeAsync so SendMessageAsync correctly skips writing post-dispose.
- Replace the dispose-idempotency role of the old flag with a dedicated _disposed bool.
- Move the explanatory comment in SendMessageAsync onto the event store branch (which intentionally still runs when the response stream is gone, to support Last-Event-ID replay).
- Rewrite the unit test to assert observable behavior via a recording Stream instead of reflecting on private fields.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-05 16:52:49 -07:00
..
HttpClientTransportAutoDetectTests.cs Restructure IMcpEndpoint, IMcpClient, and IMcpServer (#723) 2025-09-16 10:22:10 -07:00
HttpClientTransportTests.cs Fix off-by-one error in reconnection attempts (#1356) 2026-02-23 11:38:47 -05:00
SseResponseStreamTransportTests.cs Enable netfx testing. (#588) 2025-07-08 18:50:37 +03:00
StdioClientTransportTests.cs Stop logging stdio transport environment variables (#1538) 2026-06-03 01:58:52 -07:00
StdioServerTransportTests.cs Fix process crash when testing Stderr (#1449) 2026-04-06 11:29:00 -07:00
StreamableHttpServerTransportTests.cs Apply review feedback: replace _getHttpResponseCompleted with _disposed; rewrite test 2026-06-05 16:52:49 -07:00