Styling: remove a few redundant parens from object initializer expressions. (#548)

* Styling: remove a few redundant parens from object initializer expressions.

* Fix build error.
This commit is contained in:
Eirik Tsarpalis 2025-06-26 16:55:54 +03:00 • committed by GitHub
commit 55bda787ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 108 additions and 108 deletions

View file

@ -571,7 +571,7 @@ public partial class McpServerResourceTests
McpServerResource resource = McpServerResource.Create((IMcpServer server) =>
{
Assert.Same(mockServer.Object, server);
return new List<AIContent>()
return new List<AIContent>
{
new TextContent("hello!"),
new DataContent(new byte[] { 4, 5, 6 }, "application/json"),

View file

@ -586,7 +586,7 @@ public class McpServerTests : LoggedTest
await using var transport = new TestServerTransport();
await using var server = McpServerFactory.Create(transport, _options, LoggerFactory);
var logNotification = new JsonRpcNotification()
var logNotification = new JsonRpcNotification
{
Method = NotificationMethods.LoggingMessageNotification
};