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:
Eirik Tsarpalis 2025-07-08 18:50:37 +03:00 • committed by GitHub
commit aa75f6f37e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1940 additions and 53 deletions

View file

@ -17,7 +17,7 @@ public class McpServerPrimitiveCollection<T> : ICollection<T>, IReadOnlyCollecti
/// </summary>
public McpServerPrimitiveCollection(IEqualityComparer<string>? keyComparer = null)
{
_primitives = new(keyComparer);
_primitives = new(keyComparer ?? EqualityComparer<string>.Default);
}
/// <summary>Occurs when the collection is changed.</summary>

View file

@ -46,7 +46,11 @@ public class StreamServerTransport : TransportBase
_logger = loggerFactory?.CreateLogger(GetType()) ?? NullLogger.Instance;
#if NET
_inputReader = new StreamReader(inputStream, Encoding.UTF8);
#else
_inputReader = new CancellableStreamReader(inputStream, Encoding.UTF8);
#endif
_outputStream = outputStream;
SetConnected();