diff --git a/eng/verify-nupkgs.ps1 b/eng/verify-nupkgs.ps1 index 17f5656c197..6df6e85f6a7 100644 --- a/eng/verify-nupkgs.ps1 +++ b/eng/verify-nupkgs.ps1 @@ -21,7 +21,7 @@ function Confirm-NugetPackages { $expectedNumOfFiles = @{ "MSTest.Sdk" = 15 "MSTest.TestFramework" = 105 - "MSTest.TestAdapter" = 66 + "MSTest.TestAdapter" = 68 "MSTest" = 10 "MSTest.Analyzers" = 56 "MSTest.SourceGeneration" = 8 diff --git a/src/Adapter/MSTest.TestAdapter/InternalAPI/uwp/InternalAPI.Unshipped.txt b/src/Adapter/MSTest.TestAdapter/InternalAPI/uwp/InternalAPI.Unshipped.txt index 7dc5c58110b..4cbb423da82 100644 --- a/src/Adapter/MSTest.TestAdapter/InternalAPI/uwp/InternalAPI.Unshipped.txt +++ b/src/Adapter/MSTest.TestAdapter/InternalAPI/uwp/InternalAPI.Unshipped.txt @@ -1 +1,189 @@ -#nullable enable +#nullable enable +abstract Microsoft.Testing.Extensions.RunSettingsCommandLineOptionsProviderBase.EnvironmentVariablesNotSupportedOnBrowserError.get -> string! +abstract Microsoft.Testing.Extensions.RunSettingsConfigurationProviderBase.DisplayName.get -> string! +abstract Microsoft.Testing.Extensions.RunSettingsConfigurationProviderBase.ReadRunSettings(Microsoft.Testing.Platform.CommandLine.CommandLineParseResult! commandLineParseResult) -> string? +abstract Microsoft.Testing.Extensions.RunSettingsConfigurationProviderBase.Uid.get -> string! +abstract Microsoft.Testing.Extensions.RunSettingsConfigurationProviderBase.Version.get -> string! +const Microsoft.Testing.Extensions.RunSettingsCommandLineOptionsProviderBase.RunSettingsOptionName = "settings" -> string! +const Microsoft.Testing.Extensions.TestCaseFilterCommandLineOptionsProviderBase.TestCaseFilterOptionName = "filter" -> string! +const Microsoft.Testing.Extensions.TestRunParametersCommandLineOptionsProviderBase.TestRunParameterOptionName = "test-parameter" -> string! +const Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestRunSettingsCommandLineOptionsProvider.RunSettingsOptionName = "settings" -> string! +const Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestTestCaseFilterCommandLineOptionsProvider.TestCaseFilterOptionName = "filter" -> string! +const Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestTestRunParametersCommandLineOptionsProvider.TestRunParameterOptionName = "test-parameter" -> string! +Microsoft.Testing.Extensions.RunSettingsCommandLineOptionsProviderBase +Microsoft.Testing.Extensions.RunSettingsCommandLineOptionsProviderBase.RunSettingsCommandLineOptionsProviderBase(Microsoft.Testing.Platform.Extensions.IExtension! extension, Microsoft.Testing.Platform.Helpers.IFileSystem! fileSystem, string! optionDescription, string! fileDoesNotExistErrorFormat, string! fileCannotBeReadErrorFormat) -> void +Microsoft.Testing.Extensions.RunSettingsConfigurationProviderBase +Microsoft.Testing.Extensions.RunSettingsConfigurationProviderBase.BuildAsync(Microsoft.Testing.Platform.CommandLine.CommandLineParseResult! commandLineParseResult) -> System.Threading.Tasks.Task! +Microsoft.Testing.Extensions.RunSettingsConfigurationProviderBase.Description.get -> string! +Microsoft.Testing.Extensions.RunSettingsConfigurationProviderBase.GetChildKeys(string? parentPath) -> System.Collections.Generic.IEnumerable! +Microsoft.Testing.Extensions.RunSettingsConfigurationProviderBase.IsEnabledAsync() -> System.Threading.Tasks.Task! +Microsoft.Testing.Extensions.RunSettingsConfigurationProviderBase.LoadAsync() -> System.Threading.Tasks.Task! +Microsoft.Testing.Extensions.RunSettingsConfigurationProviderBase.Order.get -> int +Microsoft.Testing.Extensions.RunSettingsConfigurationProviderBase.RunSettingsConfigurationProviderBase() -> void +Microsoft.Testing.Extensions.RunSettingsConfigurationProviderBase.TryGet(string! key, out string? value) -> bool +Microsoft.Testing.Extensions.RunSettingsConfigurationProviderBase.TryGetScalar(string! key, out string? value) -> bool +Microsoft.Testing.Extensions.RunSettingsEnvironmentVariableProviderBase +Microsoft.Testing.Extensions.RunSettingsEnvironmentVariableProviderBase.Description.get -> string! +Microsoft.Testing.Extensions.RunSettingsEnvironmentVariableProviderBase.DisplayName.get -> string! +Microsoft.Testing.Extensions.RunSettingsEnvironmentVariableProviderBase.IsEnabledAsync() -> System.Threading.Tasks.Task! +Microsoft.Testing.Extensions.RunSettingsEnvironmentVariableProviderBase.RunSettingsEnvironmentVariableProviderBase(Microsoft.Testing.Platform.Extensions.IExtension! extension, Microsoft.Testing.Platform.CommandLine.ICommandLineOptions! commandLineOptions, Microsoft.Testing.Platform.Helpers.IFileSystem! fileSystem, Microsoft.Testing.Platform.Helpers.IEnvironment! environment) -> void +Microsoft.Testing.Extensions.RunSettingsEnvironmentVariableProviderBase.Uid.get -> string! +Microsoft.Testing.Extensions.RunSettingsEnvironmentVariableProviderBase.UpdateAsync(Microsoft.Testing.Platform.Extensions.TestHostControllers.IEnvironmentVariables! environmentVariables) -> System.Threading.Tasks.Task! +Microsoft.Testing.Extensions.RunSettingsEnvironmentVariableProviderBase.ValidateTestHostEnvironmentVariablesAsync(Microsoft.Testing.Platform.Extensions.TestHostControllers.IReadOnlyEnvironmentVariables! environmentVariables) -> System.Threading.Tasks.Task! +Microsoft.Testing.Extensions.RunSettingsEnvironmentVariableProviderBase.Version.get -> string! +Microsoft.Testing.Extensions.RunSettingsProviderHelper +Microsoft.Testing.Extensions.TestCaseFilterCommandLineOptionsProviderBase +Microsoft.Testing.Extensions.TestCaseFilterCommandLineOptionsProviderBase.TestCaseFilterCommandLineOptionsProviderBase(Microsoft.Testing.Platform.Extensions.IExtension! extension, string! optionDescription) -> void +Microsoft.Testing.Extensions.TestRunParametersCommandLineOptionsProviderBase +Microsoft.Testing.Extensions.TestRunParametersCommandLineOptionsProviderBase.TestRunParametersCommandLineOptionsProviderBase(Microsoft.Testing.Platform.Extensions.IExtension! extension, string! optionDescription, string! argumentIsNotParameterErrorFormat) -> void +Microsoft.Testing.Shared.BannerMessageHelper +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.IMSTestTrxReportCapability +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.IMSTestTrxReportCapability.IsTrxEnabled.get -> bool +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.IUnitTestElementFilterExpression +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.IUnitTestElementFilterExpression.MatchTestElement(System.Func! propertyValueProvider) -> bool +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestDiscoveryContext +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestDiscoveryContext.MSTestDiscoveryContext(Microsoft.Testing.Platform.CommandLine.ICommandLineOptions! commandLineOptions, Microsoft.VisualStudio.TestPlatform.ObjectModel.Adapter.IRunSettings! runSettings, Microsoft.Testing.Platform.Requests.ITestExecutionFilter! filter) -> void +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestFilterContextBase +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestFilterContextBase.GetTestCaseFilter(System.Collections.Generic.IEnumerable? supportedProperties, System.Func! propertyProvider) -> Microsoft.VisualStudio.TestPlatform.ObjectModel.Adapter.ITestCaseFilterExpression? +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestFilterContextBase.MSTestFilterContextBase(Microsoft.Testing.Platform.CommandLine.ICommandLineOptions! commandLineOptions, Microsoft.VisualStudio.TestPlatform.ObjectModel.Adapter.IRunSettings! runSettings, Microsoft.Testing.Platform.Requests.ITestExecutionFilter! filter) -> void +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestFilterContextBase.RunSettings.get -> Microsoft.VisualStudio.TestPlatform.ObjectModel.Adapter.IRunSettings? +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestFrameworkHandle +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestFrameworkHandle.EnableShutdownAfterTestRun.get -> bool +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestFrameworkHandle.EnableShutdownAfterTestRun.set -> void +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestFrameworkHandle.LaunchProcessWithDebuggerAttached(string! filePath, string? workingDirectory, string? arguments, System.Collections.Generic.IDictionary? environmentVariables) -> int +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestFrameworkHandle.MSTestFrameworkHandle(Microsoft.Testing.Platform.OutputDevice.IOutputDevice! outputDevice, Microsoft.Testing.Platform.Extensions.IExtension! extension, System.Threading.CancellationToken cancellationToken) -> void +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestFrameworkHandle.RecordAttachments(System.Collections.Generic.IList! attachmentSets) -> void +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestFrameworkHandle.RecordEnd(Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase! testCase, Microsoft.VisualStudio.TestPlatform.ObjectModel.TestOutcome outcome) -> void +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestFrameworkHandle.RecordResult(Microsoft.VisualStudio.TestPlatform.ObjectModel.TestResult! testResult) -> void +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestFrameworkHandle.RecordStart(Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase! testCase) -> void +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestFrameworkHandle.SendMessage(Microsoft.VisualStudio.TestPlatform.ObjectModel.Logging.TestMessageLevel testMessageLevel, string! message) -> void +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestRunContext +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestRunContext.InIsolation.get -> bool +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestRunContext.IsBeingDebugged.get -> bool +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestRunContext.IsDataCollectionEnabled.get -> bool +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestRunContext.KeepAlive.get -> bool +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestRunContext.MSTestRunContext(Microsoft.Testing.Platform.CommandLine.ICommandLineOptions! commandLineOptions, Microsoft.VisualStudio.TestPlatform.ObjectModel.Adapter.IRunSettings! runSettings, Microsoft.Testing.Platform.Requests.ITestExecutionFilter! filter) -> void +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestRunContext.SolutionDirectory.get -> string? +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestRunContext.TestRunDirectory.get -> string? +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestRunSettings +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestRunSettings.GetSettings(string? settingsName) -> Microsoft.VisualStudio.TestPlatform.ObjectModel.Adapter.ISettingsProvider? +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestRunSettings.MSTestRunSettings(Microsoft.Testing.Platform.CommandLine.ICommandLineOptions! commandLineOptions, Microsoft.Testing.Platform.Helpers.IFileSystem! fileSystem, Microsoft.Testing.Platform.Configurations.IConfiguration! configuration, Microsoft.Testing.Platform.Services.IClientInfo! client, Microsoft.VisualStudio.TestPlatform.ObjectModel.Logging.IMessageLogger! messageLogger) -> void +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestRunSettings.SettingsXml.get -> string? +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestRunSettingsCommandLineOptionsProvider +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestRunSettingsCommandLineOptionsProvider.MSTestRunSettingsCommandLineOptionsProvider(Microsoft.Testing.Platform.Extensions.IExtension! extension, Microsoft.Testing.Platform.Helpers.IFileSystem! fileSystem) -> void +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestRunSettingsCommandLineOptionsProvider.MSTestRunSettingsCommandLineOptionsProvider(Microsoft.Testing.Platform.Extensions.IExtension! extension) -> void +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestRunSettingsConfigurationProvider +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestRunSettingsConfigurationProvider.BuildAsync(Microsoft.Testing.Platform.CommandLine.CommandLineParseResult! commandLineParseResult) -> System.Threading.Tasks.Task! +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestRunSettingsConfigurationProvider.Description.get -> string! +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestRunSettingsConfigurationProvider.DisplayName.get -> string! +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestRunSettingsConfigurationProvider.IsEnabledAsync() -> System.Threading.Tasks.Task! +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestRunSettingsConfigurationProvider.LoadAsync() -> System.Threading.Tasks.Task! +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestRunSettingsConfigurationProvider.MSTestRunSettingsConfigurationProvider(Microsoft.Testing.Platform.Extensions.IExtension! extension, Microsoft.Testing.Platform.Helpers.IFileSystem! fileSystem) -> void +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestRunSettingsConfigurationProvider.Order.get -> int +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestRunSettingsConfigurationProvider.TryGet(string! key, out string? value) -> bool +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestRunSettingsConfigurationProvider.Uid.get -> string! +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestRunSettingsConfigurationProvider.Version.get -> string! +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestRunSettingsEnvironmentVariableProvider +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestRunSettingsEnvironmentVariableProvider.Description.get -> string! +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestRunSettingsEnvironmentVariableProvider.DisplayName.get -> string! +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestRunSettingsEnvironmentVariableProvider.IsEnabledAsync() -> System.Threading.Tasks.Task! +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestRunSettingsEnvironmentVariableProvider.MSTestRunSettingsEnvironmentVariableProvider(Microsoft.Testing.Platform.Extensions.IExtension! extension, Microsoft.Testing.Platform.CommandLine.ICommandLineOptions! commandLineOptions, Microsoft.Testing.Platform.Helpers.IFileSystem! fileSystem, Microsoft.Testing.Platform.Helpers.IEnvironment! environment) -> void +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestRunSettingsEnvironmentVariableProvider.Uid.get -> string! +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestRunSettingsEnvironmentVariableProvider.UpdateAsync(Microsoft.Testing.Platform.Extensions.TestHostControllers.IEnvironmentVariables! environmentVariables) -> System.Threading.Tasks.Task! +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestRunSettingsEnvironmentVariableProvider.ValidateTestHostEnvironmentVariablesAsync(Microsoft.Testing.Platform.Extensions.TestHostControllers.IReadOnlyEnvironmentVariables! environmentVariables) -> System.Threading.Tasks.Task! +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestRunSettingsEnvironmentVariableProvider.Version.get -> string! +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestTestCaseFilterCommandLineOptionsProvider +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestTestCaseFilterCommandLineOptionsProvider.MSTestTestCaseFilterCommandLineOptionsProvider(Microsoft.Testing.Platform.Extensions.IExtension! extension) -> void +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestTestRunParametersCommandLineOptionsProvider +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestTestRunParametersCommandLineOptionsProvider.MSTestTestRunParametersCommandLineOptionsProvider(Microsoft.Testing.Platform.Extensions.IExtension! extension) -> void +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MtpTestElementFilterProvider +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MtpTestElementFilterProvider.GetTestElementFilter(Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Interface.IAdapterMessageLogger! logger, out bool filterHasError) -> Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Interface.ITestElementFilter? +Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MtpTestElementFilterProvider.MtpTestElementFilterProvider(Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestFilterContextBase! filterContext) -> void +Microsoft.VisualStudio.TestTools.UnitTesting.MSTestBannerCapability +Microsoft.VisualStudio.TestTools.UnitTesting.MSTestBannerCapability.GetBannerMessageAsync() -> System.Threading.Tasks.Task! +Microsoft.VisualStudio.TestTools.UnitTesting.MSTestBannerCapability.MSTestBannerCapability(Microsoft.Testing.Platform.Services.IPlatformInformation! platformInformation) -> void +Microsoft.VisualStudio.TestTools.UnitTesting.MSTestExtension +Microsoft.VisualStudio.TestTools.UnitTesting.MSTestExtension.Description.get -> string! +Microsoft.VisualStudio.TestTools.UnitTesting.MSTestExtension.DisplayName.get -> string! +Microsoft.VisualStudio.TestTools.UnitTesting.MSTestExtension.IsEnabledAsync() -> System.Threading.Tasks.Task! +Microsoft.VisualStudio.TestTools.UnitTesting.MSTestExtension.MSTestExtension() -> void +Microsoft.VisualStudio.TestTools.UnitTesting.MSTestExtension.Uid.get -> string! +Microsoft.VisualStudio.TestTools.UnitTesting.MSTestExtension.Version.get -> string! +Microsoft.VisualStudio.TestTools.UnitTesting.MSTestGracefulStopTestExecutionCapability +Microsoft.VisualStudio.TestTools.UnitTesting.MSTestGracefulStopTestExecutionCapability.NotifyTestExecutionCompleted() -> void +Microsoft.VisualStudio.TestTools.UnitTesting.MSTestGracefulStopTestExecutionCapability.NotifyTestExecutionPending() -> void +Microsoft.VisualStudio.TestTools.UnitTesting.MSTestGracefulStopTestExecutionCapability.NotifyTestExecutionStarting() -> void +Microsoft.VisualStudio.TestTools.UnitTesting.MSTestGracefulStopTestExecutionCapability.StopTestExecutionAsync(System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task! +Microsoft.VisualStudio.TestTools.UnitTesting.MSTestGracefulStopTestExecutionCapability.TryStopTestExecutionAsync(System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task! +Microsoft.VisualStudio.TestTools.UnitTesting.MSTestPlatformActivity +Microsoft.VisualStudio.TestTools.UnitTesting.MSTestPlatformActivity.Dispose() -> void +Microsoft.VisualStudio.TestTools.UnitTesting.MSTestPlatformActivity.MSTestPlatformActivity(Microsoft.Testing.Platform.Telemetry.IPlatformActivity! activity) -> void +Microsoft.VisualStudio.TestTools.UnitTesting.MSTestPlatformActivity.RecordException(System.Exception! exception) -> void +Microsoft.VisualStudio.TestTools.UnitTesting.MSTestPlatformActivity.SetFailed(string? description) -> void +Microsoft.VisualStudio.TestTools.UnitTesting.MSTestPlatformActivity.SetTag(string! key, object? value) -> void +Microsoft.VisualStudio.TestTools.UnitTesting.MSTestTestFramework +Microsoft.VisualStudio.TestTools.UnitTesting.MSTestTestFramework.CloseTestSessionAsync(Microsoft.Testing.Platform.Extensions.TestFramework.CloseTestSessionContext! context) -> System.Threading.Tasks.Task! +Microsoft.VisualStudio.TestTools.UnitTesting.MSTestTestFramework.CreateTestSessionAsync(Microsoft.Testing.Platform.Extensions.TestFramework.CreateTestSessionContext! context) -> System.Threading.Tasks.Task! +Microsoft.VisualStudio.TestTools.UnitTesting.MSTestTestFramework.DataTypesProduced.get -> System.Type![]! +Microsoft.VisualStudio.TestTools.UnitTesting.MSTestTestFramework.Description.get -> string! +Microsoft.VisualStudio.TestTools.UnitTesting.MSTestTestFramework.DisplayName.get -> string! +Microsoft.VisualStudio.TestTools.UnitTesting.MSTestTestFramework.Dispose() -> void +Microsoft.VisualStudio.TestTools.UnitTesting.MSTestTestFramework.ExecuteRequestAsync(Microsoft.Testing.Platform.Extensions.TestFramework.ExecuteRequestContext! context) -> System.Threading.Tasks.Task! +Microsoft.VisualStudio.TestTools.UnitTesting.MSTestTestFramework.IsEnabledAsync() -> System.Threading.Tasks.Task! +Microsoft.VisualStudio.TestTools.UnitTesting.MSTestTestFramework.MSTestTestFramework(Microsoft.VisualStudio.TestTools.UnitTesting.MSTestExtension! extension, System.Func!>! getTestAssemblies, System.IServiceProvider! serviceProvider, Microsoft.Testing.Platform.Capabilities.TestFramework.ITestFrameworkCapabilities! capabilities) -> void +Microsoft.VisualStudio.TestTools.UnitTesting.MSTestTestFramework.Uid.get -> string! +Microsoft.VisualStudio.TestTools.UnitTesting.MSTestTestFramework.Version.get -> string! +Microsoft.VisualStudio.TestTools.UnitTesting.MSTestTestNodeConverter +Microsoft.VisualStudio.TestTools.UnitTesting.MSTestTestNodeException +Microsoft.VisualStudio.TestTools.UnitTesting.MSTestTestNodeException.MSTestTestNodeException(string? message, string? stackTrace) -> void +Microsoft.VisualStudio.TestTools.UnitTesting.MtpTestResultRecorder +Microsoft.VisualStudio.TestTools.UnitTesting.MtpTestResultRecorder.MtpTestResultRecorder(Microsoft.Testing.Platform.Messages.IMessageBus! messageBus, Microsoft.Testing.Platform.Extensions.Messages.IDataProducer! dataProducer, Microsoft.Testing.Platform.TestHost.SessionUid sessionUid, bool isTrxEnabled, Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.MSTestSettings! settings) -> void +Microsoft.VisualStudio.TestTools.UnitTesting.MtpTestResultRecorder.RecordEmptyResultAsync(Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.ObjectModel.UnitTestElement! testElement) -> System.Threading.Tasks.Task! +Microsoft.VisualStudio.TestTools.UnitTesting.MtpTestResultRecorder.RecordResultAsync(Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.ObjectModel.UnitTestElement! testElement, Microsoft.VisualStudio.TestTools.UnitTesting.TestResult! unitTestResult, System.DateTimeOffset startTime, System.DateTimeOffset endTime) -> System.Threading.Tasks.Task! +Microsoft.VisualStudio.TestTools.UnitTesting.MtpTestResultRecorder.RecordStartAsync(Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.ObjectModel.UnitTestElement! testElement) -> System.Threading.Tasks.Task! +Microsoft.VisualStudio.TestTools.UnitTesting.MTPTraceLogger +Microsoft.VisualStudio.TestTools.UnitTesting.MTPTraceLogger.Error(string! format, params object?[]! args) -> void +Microsoft.VisualStudio.TestTools.UnitTesting.MTPTraceLogger.Error(string! message) -> void +Microsoft.VisualStudio.TestTools.UnitTesting.MTPTraceLogger.Error(System.Exception! exceptionToTrace) -> void +Microsoft.VisualStudio.TestTools.UnitTesting.MTPTraceLogger.Info(string! format, params object?[]! args) -> void +Microsoft.VisualStudio.TestTools.UnitTesting.MTPTraceLogger.Info(string! message) -> void +Microsoft.VisualStudio.TestTools.UnitTesting.MTPTraceLogger.IsErrorEnabled.get -> bool +Microsoft.VisualStudio.TestTools.UnitTesting.MTPTraceLogger.IsInfoEnabled.get -> bool +Microsoft.VisualStudio.TestTools.UnitTesting.MTPTraceLogger.IsVerboseEnabled.get -> bool +Microsoft.VisualStudio.TestTools.UnitTesting.MTPTraceLogger.IsWarningEnabled.get -> bool +Microsoft.VisualStudio.TestTools.UnitTesting.MTPTraceLogger.MTPTraceLogger(Microsoft.Testing.Platform.Logging.ILogger! logger) -> void +Microsoft.VisualStudio.TestTools.UnitTesting.MTPTraceLogger.SetupRemoteEqtTraceListeners(System.AppDomain? childDomain) -> void +Microsoft.VisualStudio.TestTools.UnitTesting.MTPTraceLogger.Verbose(string! format, params object?[]! args) -> void +Microsoft.VisualStudio.TestTools.UnitTesting.MTPTraceLogger.Verbose(string! message) -> void +Microsoft.VisualStudio.TestTools.UnitTesting.MTPTraceLogger.Warning(string! format, params object?[]! args) -> void +Microsoft.VisualStudio.TestTools.UnitTesting.MTPTraceLogger.Warning(string! message) -> void +Microsoft.VisualStudio.TestTools.UnitTesting.MtpUnitTestElementSink +Microsoft.VisualStudio.TestTools.UnitTesting.MtpUnitTestElementSink.MtpUnitTestElementSink(Microsoft.Testing.Platform.Messages.IMessageBus! messageBus, Microsoft.Testing.Platform.Extensions.Messages.IDataProducer! dataProducer, Microsoft.Testing.Platform.TestHost.SessionUid sessionUid, bool isTrxEnabled) -> void +Microsoft.VisualStudio.TestTools.UnitTesting.MtpUnitTestElementSink.SendTestElementAsync(Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.ObjectModel.UnitTestElement! testElement) -> System.Threading.Tasks.Task! +Microsoft.VisualStudio.TestTools.UnitTesting.PlatformServicesConfigurationAdapter +Microsoft.VisualStudio.TestTools.UnitTesting.PlatformServicesConfigurationAdapter.PlatformServicesConfigurationAdapter(Microsoft.Testing.Platform.Configurations.IConfiguration! configuration) -> void +Microsoft.VisualStudio.TestTools.UnitTesting.PlatformServicesConfigurationAdapter.this[string! key].get -> string? +override Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestRunSettingsCommandLineOptionsProvider.EnvironmentVariablesNotSupportedOnBrowserError.get -> string! +override Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestRunSettingsCommandLineOptionsProvider.ValidateOptionArgumentsAsync(Microsoft.Testing.Platform.Extensions.CommandLine.CommandLineOption! commandOption, string![]! arguments) -> System.Threading.Tasks.Task! +override Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestRunSettingsConfigurationProvider.DisplayName.get -> string! +override Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestRunSettingsConfigurationProvider.Uid.get -> string! +override Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestRunSettingsConfigurationProvider.Version.get -> string! +override Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestTestRunParametersCommandLineOptionsProvider.ValidateOptionArgumentsAsync(Microsoft.Testing.Platform.Extensions.CommandLine.CommandLineOption! commandOption, string![]! arguments) -> System.Threading.Tasks.Task! +override Microsoft.VisualStudio.TestTools.UnitTesting.MSTestTestNodeException.StackTrace.get -> string? +override sealed Microsoft.Testing.Extensions.RunSettingsCommandLineOptionsProviderBase.ValidateCommandLineOptionsAsync(Microsoft.Testing.Platform.CommandLine.ICommandLineOptions! commandLineOptions) -> System.Threading.Tasks.Task! +override sealed Microsoft.Testing.Extensions.RunSettingsCommandLineOptionsProviderBase.ValidateOptionArgumentsAsync(Microsoft.Testing.Platform.Extensions.CommandLine.CommandLineOption! commandOption, string![]! arguments) -> System.Threading.Tasks.Task! +override sealed Microsoft.Testing.Extensions.TestRunParametersCommandLineOptionsProviderBase.ValidateOptionArgumentsAsync(Microsoft.Testing.Platform.Extensions.CommandLine.CommandLineOption! commandOption, string![]! arguments) -> System.Threading.Tasks.Task! +static Microsoft.Testing.Extensions.RunSettingsProviderHelper.ApplyEnvironmentVariables(System.Xml.Linq.XDocument! runSettings, Microsoft.Testing.Platform.Extensions.TestHostControllers.IEnvironmentVariables! environmentVariables) -> void +static Microsoft.Testing.Extensions.RunSettingsProviderHelper.CanReadFile(Microsoft.Testing.Platform.Helpers.IFileSystem! fileSystem, string! filePath) -> bool +static Microsoft.Testing.Extensions.RunSettingsProviderHelper.FindInvalidTestParameter(string![]! arguments) -> string? +static Microsoft.Testing.Extensions.RunSettingsProviderHelper.HasEnvironmentVariables(System.Xml.Linq.XDocument! runSettings) -> bool +static Microsoft.Testing.Extensions.RunSettingsProviderHelper.TryLoadRunSettingsAsync(Microsoft.Testing.Platform.CommandLine.ICommandLineOptions! commandLineOptions, Microsoft.Testing.Platform.Helpers.IFileSystem! fileSystem, Microsoft.Testing.Platform.Helpers.IEnvironment! environment, string! runSettingsOptionName) -> System.Threading.Tasks.Task! +static Microsoft.Testing.Shared.BannerMessageHelper.BuildBannerMessage(Microsoft.Testing.Platform.Services.IPlatformInformation! platformInformation, string! productName, string! version) -> string! +static Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter.MSTestRunSettings.ReadRunSettings(string![]? fileNames, Microsoft.Testing.Platform.Helpers.IFileSystem! fileSystem) -> string! +static Microsoft.VisualStudio.TestTools.UnitTesting.MSTestGracefulStopTestExecutionCapability.Create() -> Microsoft.VisualStudio.TestTools.UnitTesting.MSTestGracefulStopTestExecutionCapability! +static Microsoft.VisualStudio.TestTools.UnitTesting.MSTestGracefulStopTestExecutionCapability.Instance.get -> Microsoft.VisualStudio.TestTools.UnitTesting.MSTestGracefulStopTestExecutionCapability! +static Microsoft.VisualStudio.TestTools.UnitTesting.MSTestPlatformActivity.TryEnable(System.IServiceProvider! serviceProvider) -> void +static Microsoft.VisualStudio.TestTools.UnitTesting.MSTestTestNodeConverter.ToDiscoveredTestNode(Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.ObjectModel.UnitTestElement! element, bool isTrxEnabled) -> Microsoft.Testing.Platform.Extensions.Messages.TestNode! +static Microsoft.VisualStudio.TestTools.UnitTesting.MSTestTestNodeConverter.ToEmptyResultTestNode(Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.ObjectModel.UnitTestElement! element, bool isTrxEnabled) -> Microsoft.Testing.Platform.Extensions.Messages.TestNode! +static Microsoft.VisualStudio.TestTools.UnitTesting.MSTestTestNodeConverter.ToInProgressTestNode(Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.ObjectModel.UnitTestElement! element, bool isTrxEnabled) -> Microsoft.Testing.Platform.Extensions.Messages.TestNode! +static Microsoft.VisualStudio.TestTools.UnitTesting.MSTestTestNodeConverter.ToResultTestNode(Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.ObjectModel.UnitTestElement! element, Microsoft.VisualStudio.TestTools.UnitTesting.TestResult! result, System.DateTimeOffset startTime, System.DateTimeOffset endTime, bool isTrxEnabled, Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.MSTestSettings! settings) -> Microsoft.Testing.Platform.Extensions.Messages.TestNode! diff --git a/src/Adapter/MSTest.TestAdapter/MSTest.TestAdapter.csproj b/src/Adapter/MSTest.TestAdapter/MSTest.TestAdapter.csproj index 4f1fb327ccf..c6f23d03734 100644 --- a/src/Adapter/MSTest.TestAdapter/MSTest.TestAdapter.csproj +++ b/src/Adapter/MSTest.TestAdapter/MSTest.TestAdapter.csproj @@ -64,9 +64,9 @@ $(CommonProductDescription)]]> - - - + + + - - + + @@ -181,6 +181,11 @@ $(CommonProductDescription)]]> + + + + diff --git a/src/Adapter/MSTest.TestAdapter/PublicAPI/uwp/PublicAPI.Unshipped.txt b/src/Adapter/MSTest.TestAdapter/PublicAPI/uwp/PublicAPI.Unshipped.txt index 7dc5c58110b..4f0b5ee6189 100644 --- a/src/Adapter/MSTest.TestAdapter/PublicAPI/uwp/PublicAPI.Unshipped.txt +++ b/src/Adapter/MSTest.TestAdapter/PublicAPI/uwp/PublicAPI.Unshipped.txt @@ -1 +1,5 @@ -#nullable enable +#nullable enable +Microsoft.VisualStudio.TestTools.UnitTesting.TestApplicationBuilderExtensions +Microsoft.VisualStudio.TestTools.UnitTesting.TestingPlatformBuilderHook +static Microsoft.VisualStudio.TestTools.UnitTesting.TestApplicationBuilderExtensions.AddMSTest(this Microsoft.Testing.Platform.Builder.ITestApplicationBuilder! testApplicationBuilder, System.Func!>! getTestAssemblies) -> void +static Microsoft.VisualStudio.TestTools.UnitTesting.TestingPlatformBuilderHook.AddExtensions(Microsoft.Testing.Platform.Builder.ITestApplicationBuilder! testApplicationBuilder, string![]! arguments) -> void diff --git a/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/IMSTestTrxReportCapability.cs b/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/IMSTestTrxReportCapability.cs index 7c87f0fcaa4..cf174574cde 100644 --- a/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/IMSTestTrxReportCapability.cs +++ b/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/IMSTestTrxReportCapability.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -#if !WINDOWS_UWP using Microsoft.Testing.Extensions.TrxReport.Abstractions; namespace Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatformAdapter; @@ -15,4 +14,3 @@ internal interface IMSTestTrxReportCapability : ITrxReportCapability { bool IsTrxEnabled { get; } } -#endif diff --git a/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestBannerCapability.cs b/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestBannerCapability.cs index d1bba017c17..c652097bd7d 100644 --- a/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestBannerCapability.cs +++ b/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestBannerCapability.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -#if !WINDOWS_UWP using Microsoft.Testing.Platform.Capabilities.TestFramework; using Microsoft.Testing.Platform.Services; using Microsoft.Testing.Shared; @@ -18,4 +17,3 @@ internal sealed class MSTestBannerCapability : IBannerMessageOwnerCapability public Task GetBannerMessageAsync() => Task.FromResult(BannerMessageHelper.BuildBannerMessage(_platformInformation, "MSTest", MSTestVersion.SemanticVersion)); } -#endif diff --git a/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestExtension.cs b/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestExtension.cs index 9c59e0925b4..9762eea84e2 100644 --- a/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestExtension.cs +++ b/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestExtension.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -#if !WINDOWS_UWP using Microsoft.Testing.Platform.Extensions; using Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.Resources; @@ -26,4 +25,3 @@ private static string GetExtensionUid() return assemblyMetadataAttributes?.FirstOrDefault(x => x.Key == "MSTest.Extension.Uid")?.Value ?? nameof(MSTestExtension); } } -#endif diff --git a/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestFilterContext.cs b/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestFilterContext.cs index 9da76e67186..499f6071a59 100644 --- a/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestFilterContext.cs +++ b/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestFilterContext.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -#if !WINDOWS_UWP using Microsoft.Testing.Platform.CommandLine; using Microsoft.Testing.Platform.Extensions.Messages; using Microsoft.Testing.Platform.Requests; @@ -260,4 +259,3 @@ public MSTestDiscoveryContext(ICommandLineOptions commandLineOptions, IRunSettin { } } -#endif diff --git a/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestFrameworkHandle.cs b/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestFrameworkHandle.cs index e6859a27a77..7f8d8e3285c 100644 --- a/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestFrameworkHandle.cs +++ b/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestFrameworkHandle.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -#if !WINDOWS_UWP using Microsoft.Testing.Platform.Extensions; using Microsoft.Testing.Platform.Extensions.OutputDevice; using Microsoft.Testing.Platform.OutputDevice; @@ -75,4 +74,3 @@ public void SendMessage(TestMessageLevel testMessageLevel, string message) Task IExtension.IsEnabledAsync() => _extension.IsEnabledAsync(); } -#endif diff --git a/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestGracefulStopTestExecutionCapability.cs b/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestGracefulStopTestExecutionCapability.cs index 7031faaffaa..123c0d17e64 100644 --- a/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestGracefulStopTestExecutionCapability.cs +++ b/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestGracefulStopTestExecutionCapability.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -#if !WINDOWS_UWP using Microsoft.Testing.Platform.Capabilities.TestFramework; using Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter; @@ -130,4 +129,3 @@ private enum ExecutionState Completed, } } -#endif diff --git a/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestPlatformActivity.cs b/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestPlatformActivity.cs index 1684f25d0e4..7e31d3e53ba 100644 --- a/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestPlatformActivity.cs +++ b/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestPlatformActivity.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -#if !WINDOWS_UWP using Microsoft.Testing.Platform.Telemetry; using Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter; @@ -48,4 +47,3 @@ internal static void TryEnable(IServiceProvider serviceProvider) : null); } } -#endif diff --git a/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestRunSettings.cs b/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestRunSettings.cs index 0b422252bfe..31a2ed6c130 100644 --- a/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestRunSettings.cs +++ b/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestRunSettings.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -#if !WINDOWS_UWP using Microsoft.Testing.Platform.CommandLine; using Microsoft.Testing.Platform.Configurations; using Microsoft.Testing.Platform.Services; @@ -213,4 +212,3 @@ private static void WarnOnUnsupportedEntries(XDocument document, IMessageLogger } } } -#endif diff --git a/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestRunSettingsCommandLineOptionsProvider.cs b/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestRunSettingsCommandLineOptionsProvider.cs index 2dae388e9bb..8d81e78547d 100644 --- a/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestRunSettingsCommandLineOptionsProvider.cs +++ b/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestRunSettingsCommandLineOptionsProvider.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -#if !WINDOWS_UWP using Microsoft.Testing.Extensions; using Microsoft.Testing.Platform.Extensions; using Microsoft.Testing.Platform.Helpers; @@ -31,4 +30,3 @@ internal MSTestRunSettingsCommandLineOptionsProvider(IExtension extension, IFile protected override string EnvironmentVariablesNotSupportedOnBrowserError => PlatformAdapterResources.RunSettingsEnvironmentVariablesNotSupportedOnBrowser; } -#endif diff --git a/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestRunSettingsConfigurationProvider.cs b/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestRunSettingsConfigurationProvider.cs index 6a91b2dbe2d..3159d770660 100644 --- a/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestRunSettingsConfigurationProvider.cs +++ b/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestRunSettingsConfigurationProvider.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -#if !WINDOWS_UWP using Microsoft.Testing.Extensions; using Microsoft.Testing.Platform.CommandLine; using Microsoft.Testing.Platform.Extensions; @@ -39,4 +38,3 @@ public MSTestRunSettingsConfigurationProvider(IExtension extension, IFileSystem return MSTestRunSettings.ReadRunSettings(fileNames, _fileSystem); } } -#endif diff --git a/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestRunSettingsEnvironmentVariableProvider.cs b/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestRunSettingsEnvironmentVariableProvider.cs index 54816fc1748..090e63a31f7 100644 --- a/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestRunSettingsEnvironmentVariableProvider.cs +++ b/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestRunSettingsEnvironmentVariableProvider.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -#if !WINDOWS_UWP using Microsoft.Testing.Extensions; using Microsoft.Testing.Platform.CommandLine; using Microsoft.Testing.Platform.Extensions; @@ -19,4 +18,3 @@ namespace Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.TestingPlatform [SuppressMessage("ApiDesign", "RS0030:Do not use banned APIs", Justification = "We can use MTP from this folder")] internal sealed class MSTestRunSettingsEnvironmentVariableProvider(IExtension extension, ICommandLineOptions commandLineOptions, IFileSystem fileSystem, IEnvironment environment) : RunSettingsEnvironmentVariableProviderBase(extension, commandLineOptions, fileSystem, environment); -#endif diff --git a/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestTestCaseFilterCommandLineOptionsProvider.cs b/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestTestCaseFilterCommandLineOptionsProvider.cs index c680b8644d0..576f0b63b40 100644 --- a/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestTestCaseFilterCommandLineOptionsProvider.cs +++ b/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestTestCaseFilterCommandLineOptionsProvider.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -#if !WINDOWS_UWP using Microsoft.Testing.Extensions; using Microsoft.Testing.Platform.Extensions; using Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.Resources; @@ -20,4 +19,3 @@ public MSTestTestCaseFilterCommandLineOptionsProvider(IExtension extension) { } } -#endif diff --git a/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestTestFramework.cs b/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestTestFramework.cs index 432e1c0cc31..20fe2fb2b95 100644 --- a/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestTestFramework.cs +++ b/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestTestFramework.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -#if !WINDOWS_UWP using Microsoft.Testing.Extensions.TrxReport.Abstractions; using Microsoft.Testing.Platform.Capabilities.TestFramework; using Microsoft.Testing.Platform.Extensions.Messages; @@ -249,4 +248,3 @@ public void Dispose() } } } -#endif diff --git a/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestTestNodeConverter.cs b/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestTestNodeConverter.cs index d61ad12760b..04db4e2e46b 100644 --- a/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestTestNodeConverter.cs +++ b/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestTestNodeConverter.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -#if !WINDOWS_UWP using Microsoft.Testing.Extensions.TrxReport.Abstractions; using Microsoft.Testing.Platform.Extensions.Messages; using Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter; @@ -495,4 +494,3 @@ private static void AddAttachments(TestNode testNode, FrameworkTestResult result } } } -#endif diff --git a/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestTestNodeException.cs b/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestTestNodeException.cs index 274c20c1259..5528274653b 100644 --- a/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestTestNodeException.cs +++ b/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestTestNodeException.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -#if !WINDOWS_UWP namespace Microsoft.VisualStudio.TestTools.UnitTesting; /// @@ -19,4 +18,3 @@ public MSTestTestNodeException(string? message, string? stackTrace) public override string? StackTrace { get; } } -#endif diff --git a/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestTestRunParametersCommandLineOptionsProvider.cs b/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestTestRunParametersCommandLineOptionsProvider.cs index a6feed8d27d..fba90c915bd 100644 --- a/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestTestRunParametersCommandLineOptionsProvider.cs +++ b/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestTestRunParametersCommandLineOptionsProvider.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -#if !WINDOWS_UWP using Microsoft.Testing.Extensions; using Microsoft.Testing.Platform.Extensions; using Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.Resources; @@ -21,4 +20,3 @@ public MSTestTestRunParametersCommandLineOptionsProvider(IExtension extension) { } } -#endif diff --git a/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MTPTraceLogger.cs b/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MTPTraceLogger.cs index 91b13b0e73c..4ec7349c54f 100644 --- a/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MTPTraceLogger.cs +++ b/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MTPTraceLogger.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -#if !WINDOWS_UWP #if NETFRAMEWORK using System.Security; #endif @@ -74,4 +73,3 @@ public void SetupRemoteEqtTraceListeners(AppDomain? childDomain) } #endif } -#endif diff --git a/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MtpTestElementFilter.cs b/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MtpTestElementFilter.cs index a305babc0ff..e2828c619a7 100644 --- a/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MtpTestElementFilter.cs +++ b/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MtpTestElementFilter.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -#if !WINDOWS_UWP using Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.Extensions; using Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.ObjectModel; using Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Interface; @@ -169,4 +168,3 @@ public bool Matches(UnitTestElement testElement) } } } -#endif diff --git a/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MtpTestResultRecorder.cs b/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MtpTestResultRecorder.cs index 42c310104e1..61bfa9c07b7 100644 --- a/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MtpTestResultRecorder.cs +++ b/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MtpTestResultRecorder.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -#if !WINDOWS_UWP using Microsoft.Testing.Platform.Extensions.Messages; using Microsoft.Testing.Platform.Messages; using Microsoft.Testing.Platform.TestHost; @@ -65,4 +64,3 @@ public async Task RecordResultAsync(UnitTestElement testElement, Framework private Task PublishAsync(TestNode testNode) => _messageBus.PublishAsync(_dataProducer, new TestNodeUpdateMessage(_sessionUid, testNode)); } -#endif diff --git a/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MtpUnitTestElementSink.cs b/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MtpUnitTestElementSink.cs index 27a56d62640..e40d1d82b4f 100644 --- a/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MtpUnitTestElementSink.cs +++ b/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MtpUnitTestElementSink.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -#if !WINDOWS_UWP using Microsoft.Testing.Platform.Extensions.Messages; using Microsoft.Testing.Platform.Messages; using Microsoft.Testing.Platform.TestHost; @@ -37,4 +36,3 @@ public Task SendTestElementAsync(UnitTestElement testElement) return _messageBus.PublishAsync(_dataProducer, new TestNodeUpdateMessage(_sessionUid, testNode)); } } -#endif diff --git a/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/PlatformServicesConfigurationAdapter.cs b/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/PlatformServicesConfigurationAdapter.cs index c960b7e26cb..515f5b6d604 100644 --- a/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/PlatformServicesConfigurationAdapter.cs +++ b/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/PlatformServicesConfigurationAdapter.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -#if !WINDOWS_UWP using Microsoft.Testing.Platform.Configurations; using PlatformServicesConfiguration = Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Interface.IConfiguration; @@ -18,4 +17,3 @@ public PlatformServicesConfigurationAdapter(IConfiguration configuration) public string? this[string key] => _configuration[key]; } -#endif diff --git a/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/TestApplicationBuilderExtensions.cs b/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/TestApplicationBuilderExtensions.cs index 8ecda904290..679fabab84e 100644 --- a/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/TestApplicationBuilderExtensions.cs +++ b/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/TestApplicationBuilderExtensions.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -#if !WINDOWS_UWP using Microsoft.Testing.Extensions.TrxReport.Abstractions; using Microsoft.Testing.Platform.Builder; using Microsoft.Testing.Platform.Capabilities.TestFramework; @@ -76,4 +75,3 @@ public static void AddMSTest(this ITestApplicationBuilder testApplicationBuilder (capabilities, serviceProvider) => new MSTestTestFramework(extension, getTestAssemblies, serviceProvider, capabilities)); } } -#endif diff --git a/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/TestingPlatformBuilderHook.cs b/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/TestingPlatformBuilderHook.cs index 455423a6ddc..a3b265fa221 100644 --- a/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/TestingPlatformBuilderHook.cs +++ b/src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/TestingPlatformBuilderHook.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -#if !WINDOWS_UWP using Microsoft.Testing.Platform.Builder; namespace Microsoft.VisualStudio.TestTools.UnitTesting; @@ -21,4 +20,3 @@ public static class TestingPlatformBuilderHook public static void AddExtensions(ITestApplicationBuilder testApplicationBuilder, string[] arguments) => testApplicationBuilder.AddMSTest(() => [Assembly.GetEntryAssembly()!]); } -#endif diff --git a/src/Adapter/MSTest.TestAdapter/buildTransitive/uwp/MSTest.TestAdapter.props b/src/Adapter/MSTest.TestAdapter/buildTransitive/uwp/MSTest.TestAdapter.props index d38f1c2bdf6..1e14ef753ee 100644 --- a/src/Adapter/MSTest.TestAdapter/buildTransitive/uwp/MSTest.TestAdapter.props +++ b/src/Adapter/MSTest.TestAdapter/buildTransitive/uwp/MSTest.TestAdapter.props @@ -5,4 +5,16 @@ true + + + + MSTest + Microsoft.VisualStudio.TestTools.UnitTesting.TestingPlatformBuilderHook + + + diff --git a/src/Adapter/MSTest.TestAdapter/buildTransitive/uwp/MSTest.TestAdapter.targets b/src/Adapter/MSTest.TestAdapter/buildTransitive/uwp/MSTest.TestAdapter.targets index cd5f1702e51..b9ed21dea92 100644 --- a/src/Adapter/MSTest.TestAdapter/buildTransitive/uwp/MSTest.TestAdapter.targets +++ b/src/Adapter/MSTest.TestAdapter/buildTransitive/uwp/MSTest.TestAdapter.targets @@ -1,5 +1,13 @@ + + + false + $(EnableMSTestRunner) + + false + + $(MSBuildThisFileDirectory)MSTest.TestAdapter.dll @@ -9,6 +17,13 @@ + + + + + diff --git a/src/Adapter/Shared/BannerMessageHelper.cs b/src/Adapter/Shared/BannerMessageHelper.cs index a124f0d08aa..153214295a2 100644 --- a/src/Adapter/Shared/BannerMessageHelper.cs +++ b/src/Adapter/Shared/BannerMessageHelper.cs @@ -1,7 +1,6 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -#if !WINDOWS_UWP using Microsoft.Testing.Platform.Services; namespace Microsoft.Testing.Shared; @@ -41,4 +40,3 @@ public static string BuildBannerMessage(IPlatformInformation platformInformation return bannerMessage.ToString(); } } -#endif diff --git a/src/Platform/SharedExtensionHelpers/RunSettingsCommandLineOptionsProviderBase.cs b/src/Platform/SharedExtensionHelpers/RunSettingsCommandLineOptionsProviderBase.cs index 7e9000b6181..aeb22d3b0fd 100644 --- a/src/Platform/SharedExtensionHelpers/RunSettingsCommandLineOptionsProviderBase.cs +++ b/src/Platform/SharedExtensionHelpers/RunSettingsCommandLineOptionsProviderBase.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -#if !WINDOWS_UWP using Microsoft.Testing.Platform.CommandLine; using Microsoft.Testing.Platform.Extensions; using Microsoft.Testing.Platform.Extensions.CommandLine; @@ -86,4 +85,3 @@ public sealed override async Task ValidateCommandLineOptionsAs return ValidationResult.Valid(); } } -#endif diff --git a/src/Platform/SharedExtensionHelpers/RunSettingsConfigurationProviderBase.cs b/src/Platform/SharedExtensionHelpers/RunSettingsConfigurationProviderBase.cs index 7a22ff3c135..34ea8604bb2 100644 --- a/src/Platform/SharedExtensionHelpers/RunSettingsConfigurationProviderBase.cs +++ b/src/Platform/SharedExtensionHelpers/RunSettingsConfigurationProviderBase.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -#if !WINDOWS_UWP using Microsoft.Testing.Platform.CommandLine; using Microsoft.Testing.Platform.Configurations; @@ -88,4 +87,3 @@ public Task BuildAsync(CommandLineParseResult commandLin /// protected abstract string? ReadRunSettings(CommandLineParseResult commandLineParseResult); } -#endif diff --git a/src/Platform/SharedExtensionHelpers/RunSettingsEnvironmentVariableProviderBase.cs b/src/Platform/SharedExtensionHelpers/RunSettingsEnvironmentVariableProviderBase.cs index fdcba1d079d..6f0a5392037 100644 --- a/src/Platform/SharedExtensionHelpers/RunSettingsEnvironmentVariableProviderBase.cs +++ b/src/Platform/SharedExtensionHelpers/RunSettingsEnvironmentVariableProviderBase.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -#if !WINDOWS_UWP using Microsoft.Testing.Platform.CommandLine; using Microsoft.Testing.Platform.Extensions; using Microsoft.Testing.Platform.Extensions.TestHostControllers; @@ -60,4 +59,3 @@ public Task UpdateAsync(IEnvironmentVariables environmentVariables) public Task ValidateTestHostEnvironmentVariablesAsync(IReadOnlyEnvironmentVariables environmentVariables) => ValidationResult.ValidTask; } -#endif diff --git a/src/Platform/SharedExtensionHelpers/RunSettingsProviderHelper.cs b/src/Platform/SharedExtensionHelpers/RunSettingsProviderHelper.cs index ee67189ca84..d8572199239 100644 --- a/src/Platform/SharedExtensionHelpers/RunSettingsProviderHelper.cs +++ b/src/Platform/SharedExtensionHelpers/RunSettingsProviderHelper.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -#if !WINDOWS_UWP using Microsoft.Testing.Platform.CommandLine; using Microsoft.Testing.Platform.Extensions.TestHostControllers; using Microsoft.Testing.Platform.Helpers; @@ -114,4 +113,3 @@ internal static void ApplyEnvironmentVariables(XDocument runSettings, IEnvironme internal static string? FindInvalidTestParameter(string[] arguments) => arguments.FirstOrDefault(argument => !argument.Contains('=')); } -#endif diff --git a/src/Platform/SharedExtensionHelpers/TestCaseFilterCommandLineOptionsProviderBase.cs b/src/Platform/SharedExtensionHelpers/TestCaseFilterCommandLineOptionsProviderBase.cs index 055717b683b..b187b597f26 100644 --- a/src/Platform/SharedExtensionHelpers/TestCaseFilterCommandLineOptionsProviderBase.cs +++ b/src/Platform/SharedExtensionHelpers/TestCaseFilterCommandLineOptionsProviderBase.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -#if !WINDOWS_UWP using Microsoft.Testing.Platform.CommandLine; using Microsoft.Testing.Platform.Extensions; using Microsoft.Testing.Platform.Extensions.CommandLine; @@ -24,4 +23,3 @@ protected TestCaseFilterCommandLineOptionsProviderBase(IExtension extension, str { } } -#endif diff --git a/src/Platform/SharedExtensionHelpers/TestRunParametersCommandLineOptionsProviderBase.cs b/src/Platform/SharedExtensionHelpers/TestRunParametersCommandLineOptionsProviderBase.cs index 164d452e179..413dca9d10b 100644 --- a/src/Platform/SharedExtensionHelpers/TestRunParametersCommandLineOptionsProviderBase.cs +++ b/src/Platform/SharedExtensionHelpers/TestRunParametersCommandLineOptionsProviderBase.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -#if !WINDOWS_UWP using Microsoft.Testing.Platform.CommandLine; using Microsoft.Testing.Platform.Extensions; using Microsoft.Testing.Platform.Extensions.CommandLine; @@ -38,4 +37,3 @@ public sealed override Task ValidateOptionArgumentsAsync(Comma : ValidationResult.ValidTask; } } -#endif diff --git a/test/IntegrationTests/MSTest.Acceptance.IntegrationTests/WindowsApplicationModelPackageTests.cs b/test/IntegrationTests/MSTest.Acceptance.IntegrationTests/WindowsApplicationModelPackageTests.cs index ecaf513e130..58a03a62377 100644 --- a/test/IntegrationTests/MSTest.Acceptance.IntegrationTests/WindowsApplicationModelPackageTests.cs +++ b/test/IntegrationTests/MSTest.Acceptance.IntegrationTests/WindowsApplicationModelPackageTests.cs @@ -19,6 +19,8 @@ public sealed class WindowsApplicationModelPackageTests // Classic UWP. "build/uap10.0/MSTest.TestAdapter.props", "build/uap10.0/MSTest.TestAdapter.targets", + "buildTransitive/uap10.0/Microsoft.Testing.Extensions.TrxReport.Abstractions.dll", + "buildTransitive/uap10.0/Microsoft.Testing.Platform.dll", "buildTransitive/uap10.0/MSTest.TestAdapter.dll", "buildTransitive/uap10.0/MSTestAdapter.PlatformServices.dll", "buildTransitive/uap10.0/MSTest.TestAdapter.props", @@ -77,6 +79,23 @@ public void PackedMSTestTestAdapter_ContainsRequiredWindowsApplicationModelAsset GetExactCurrentPackagePath("MSTest.TestAdapter"), RequiredTestAdapterEntries); + [TestMethod] + public void PackedMSTestTestAdapter_UwpPropsRegisterMSTestBuilderHook() + { + string packagePath = GetExactCurrentPackagePath("MSTest.TestAdapter"); + using ZipArchive archive = ZipFile.OpenRead(packagePath); + ZipArchiveEntry propsEntry = archive.GetEntry("buildTransitive/uap10.0/MSTest.TestAdapter.props") + ?? throw new AssertFailedException($"Package '{packagePath}' does not contain the classic UWP props."); + using var reader = new StreamReader(propsEntry.Open()); + string props = reader.ReadToEnd(); + + Assert.Contains("031F8871-2660-4208-8F6B-FC142B40ABFF", props, propsEntry.FullName); + Assert.Contains( + "Microsoft.VisualStudio.TestTools.UnitTesting.TestingPlatformBuilderHook", + props, + propsEntry.FullName); + } + [TestMethod] public void PackedMSTestTestFramework_ContainsRequiredWindowsApplicationModelAssets() => AssertPackageContainsAllEntries(