From f2e23ce16336785d6eb102e9984156d5deb963cc Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Fri, 31 Jan 2025 17:05:57 +1100 Subject: [PATCH] fix Warning CS9113 : Parameter 'testFramework' is unread. --- .../Microsoft.Testing.Platform/Hosts/TestHostBuilder.cs | 1 - .../Microsoft.Testing.Platform/Messages/ListTestsMessageBus.cs | 3 --- 2 files changed, 4 deletions(-) diff --git a/src/Platform/Microsoft.Testing.Platform/Hosts/TestHostBuilder.cs b/src/Platform/Microsoft.Testing.Platform/Hosts/TestHostBuilder.cs index 925b000fd4..97c78e31fd 100644 --- a/src/Platform/Microsoft.Testing.Platform/Hosts/TestHostBuilder.cs +++ b/src/Platform/Microsoft.Testing.Platform/Hosts/TestHostBuilder.cs @@ -750,7 +750,6 @@ private static async Task BuildTestFrameworkAsync(TestFrameworkB && !testFrameworkBuilderData.IsJsonRpcProtocol) { ListTestsMessageBus concreteMessageBusService = new( - serviceProvider.GetTestFramework(), serviceProvider.GetTestApplicationCancellationTokenSource(), serviceProvider.GetLoggerFactory(), serviceProvider.GetOutputDevice(), diff --git a/src/Platform/Microsoft.Testing.Platform/Messages/ListTestsMessageBus.cs b/src/Platform/Microsoft.Testing.Platform/Messages/ListTestsMessageBus.cs index a2b54245d8..e621517001 100644 --- a/src/Platform/Microsoft.Testing.Platform/Messages/ListTestsMessageBus.cs +++ b/src/Platform/Microsoft.Testing.Platform/Messages/ListTestsMessageBus.cs @@ -3,7 +3,6 @@ using Microsoft.Testing.Platform.Extensions.Messages; using Microsoft.Testing.Platform.Extensions.OutputDevice; -using Microsoft.Testing.Platform.Extensions.TestFramework; using Microsoft.Testing.Platform.Extensions.TestHost; using Microsoft.Testing.Platform.Helpers; using Microsoft.Testing.Platform.Logging; @@ -14,7 +13,6 @@ namespace Microsoft.Testing.Platform.Messages; internal sealed class ListTestsMessageBus( - ITestFramework testFramework, ITestApplicationCancellationTokenSource testApplicationCancellationTokenSource, ILoggerFactory loggerFactory, IOutputDevice outputDisplay, @@ -24,7 +22,6 @@ internal sealed class ListTestsMessageBus( IPushOnlyProtocol? pushOnlyProtocol, IPushOnlyProtocolConsumer? pushOnlyProtocolConsumer) : BaseMessageBus, IMessageBus, IDisposable, IOutputDeviceDataProducer { - private readonly ITestFramework _testFramework = testFramework; private readonly ITestApplicationCancellationTokenSource _testApplicationCancellationTokenSource = testApplicationCancellationTokenSource; private readonly IOutputDevice _outputDisplay = outputDisplay; private readonly IEnvironment _environment = environment;