Skip to content

Commit b0f714a

Browse files
CopilotAniruddh25
andcommitted
Fix IDE0032: Use auto property for MockMcpTool.ToolType
Co-authored-by: Aniruddh25 <[email protected]>
1 parent 4cd0a8b commit b0f714a

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

File renamed without changes.

src/Service.Tests/UnitTests/McpTelemetryTests.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -349,21 +349,20 @@ private class MockMcpTool : IMcpTool
349349
{
350350
private readonly CallToolResult? _result;
351351
private readonly Exception? _exception;
352-
private readonly ToolType _toolType;
353352

354353
public MockMcpTool(CallToolResult result, ToolType toolType = ToolType.BuiltIn)
355354
{
356355
_result = result;
357-
_toolType = toolType;
356+
ToolType = toolType;
358357
}
359358

360359
public MockMcpTool(Exception exception, ToolType toolType = ToolType.BuiltIn)
361360
{
362361
_exception = exception;
363-
_toolType = toolType;
362+
ToolType = toolType;
364363
}
365364

366-
public ToolType ToolType => _toolType;
365+
public ToolType ToolType { get; }
367366

368367
public Tool GetToolMetadata() => new() { Name = "mock_tool", Description = "Mock tool for testing" };
369368

0 commit comments

Comments
 (0)