Make logging optional in all public APIs (#72)

This commit is contained in:
Stephen Toub 2025-03-13 18:16:21 -04:00 • committed by GitHub
commit 729c8b5eb9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -53,13 +53,6 @@ public class McpServerFactoryTests
Assert.Throws<ArgumentNullException>(() => new McpServerFactory(_serverTransport.Object, null!, _loggerFactory.Object, _serverDelegates.Object, _serviceProvider));
}
[Fact]
public void Constructor_Throws_For_Null_Logger()
{
// Arrange, Act & Assert
Assert.Throws<ArgumentNullException>(() => new McpServerFactory(_serverTransport.Object, _options, null!, _serverDelegates.Object, _serviceProvider));
}
[Fact]
public void Constructor_Does_Not_Throw_For_Null_ServerDelegates()
{