diff --git a/src/Platform/Microsoft.Testing.Platform/Builder/ITestApplicationBuilder.cs b/src/Platform/Microsoft.Testing.Platform/Builder/ITestApplicationBuilder.cs index 7309a14589..d17fca33e1 100644 --- a/src/Platform/Microsoft.Testing.Platform/Builder/ITestApplicationBuilder.cs +++ b/src/Platform/Microsoft.Testing.Platform/Builder/ITestApplicationBuilder.cs @@ -47,11 +47,11 @@ public interface ITestApplicationBuilder /// Registers a test framework with the application builder. /// /// The factory method for creating test framework capabilities. - /// The factory method for creating a test framework adapter. + /// The factory method for creating a test framework adapter. /// The updated test application builder. ITestApplicationBuilder RegisterTestFramework( Func capabilitiesFactory, - Func adapterFactory); + Func frameworkFactory); /// /// Builds the test application asynchronously. diff --git a/src/Platform/Microsoft.Testing.Platform/Builder/TestApplicationBuilder.cs b/src/Platform/Microsoft.Testing.Platform/Builder/TestApplicationBuilder.cs index 4147baebc8..ce13d07d0b 100644 --- a/src/Platform/Microsoft.Testing.Platform/Builder/TestApplicationBuilder.cs +++ b/src/Platform/Microsoft.Testing.Platform/Builder/TestApplicationBuilder.cs @@ -72,9 +72,9 @@ internal TestApplicationBuilder( public ITestApplicationBuilder RegisterTestFramework( Func capabilitiesFactory, - Func adapterFactory) + Func frameworkFactory) { - Guard.NotNull(adapterFactory); + Guard.NotNull(frameworkFactory); Guard.NotNull(capabilitiesFactory); if (_testFrameworkFactory is not null) @@ -82,7 +82,7 @@ public ITestApplicationBuilder RegisterTestFramework( throw new InvalidOperationException(PlatformResources.TestApplicationBuilderFrameworkAdapterFactoryAlreadyRegisteredErrorMessage); } - _testFrameworkFactory = adapterFactory; + _testFrameworkFactory = frameworkFactory; if (_testFrameworkCapabilitiesFactory is not null) { diff --git a/src/Platform/Microsoft.Testing.Platform/PublicAPI/PublicAPI.Unshipped.txt b/src/Platform/Microsoft.Testing.Platform/PublicAPI/PublicAPI.Unshipped.txt index 7dc5c58110..eed1e2d100 100644 --- a/src/Platform/Microsoft.Testing.Platform/PublicAPI/PublicAPI.Unshipped.txt +++ b/src/Platform/Microsoft.Testing.Platform/PublicAPI/PublicAPI.Unshipped.txt @@ -1 +1,3 @@ #nullable enable +Microsoft.Testing.Platform.Builder.ITestApplicationBuilder.RegisterTestFramework(System.Func! capabilitiesFactory, System.Func! frameworkFactory) -> Microsoft.Testing.Platform.Builder.ITestApplicationBuilder! +*REMOVED*Microsoft.Testing.Platform.Builder.ITestApplicationBuilder.RegisterTestFramework(System.Func! capabilitiesFactory, System.Func! adapterFactory) -> Microsoft.Testing.Platform.Builder.ITestApplicationBuilder!