diff --git a/TestFx.sln b/TestFx.sln
index b2dc827434..183aebcedf 100644
--- a/TestFx.sln
+++ b/TestFx.sln
@@ -184,6 +184,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TimeoutTestProjectNetCore",
EndProject
Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "FSharpTestProject", "test\E2ETests\TestAssets\FSharpTestProject\FSharpTestProject.fsproj", "{E5E58613-82FC-44CD-B75F-4F1C7ED52D0D}"
EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Extension.WinUI", "src\TestFramework\Extension.WinUI\Extension.WinUI.csproj", "{23B9D9A2-4AEE-47E6-97B5-060DF21539FB}"
+EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "NetCore", "NetCore", "{D11C6664-1C4E-48F0-AA92-7F5BADC6F82C}"
ProjectSection(SolutionItems) = preProject
src\Adapter\Build\NetCore\MSTest.TestAdapter.props = src\Adapter\Build\NetCore\MSTest.TestAdapter.props
@@ -193,6 +195,7 @@ Global
GlobalSection(SharedMSBuildProjectFiles) = preSolution
src\Adapter\PlatformServices.Shared\PlatformServices.Shared.projitems*{2177c273-ae07-43b3-b87a-443e47a23c5a}*SharedItemsImports = 13
src\TestFramework\Extension.Shared\Extension.Shared.projitems*{272ca5e1-8e81-4825-9e47-86cce02f700d}*SharedItemsImports = 13
+ src\TestFramework\Extension.Shared\Extension.Shared.projitems*{23b9d9a2-4aee-47e6-97b5-060df21539fb}*SharedItemsImports = 5
src\TestFramework\Extension.Shared\Extension.Shared.projitems*{df131865-84ee-4540-8112-e88acebdea09}*SharedItemsImports = 4
EndGlobalSection
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -1170,6 +1173,30 @@ Global
{E5E58613-82FC-44CD-B75F-4F1C7ED52D0D}.Release|x64.Build.0 = Release|Any CPU
{E5E58613-82FC-44CD-B75F-4F1C7ED52D0D}.Release|x86.ActiveCfg = Release|Any CPU
{E5E58613-82FC-44CD-B75F-4F1C7ED52D0D}.Release|x86.Build.0 = Release|Any CPU
+ {23B9D9A2-4AEE-47E6-97B5-060DF21539FB}.Code Analysis Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {23B9D9A2-4AEE-47E6-97B5-060DF21539FB}.Code Analysis Debug|Any CPU.Build.0 = Debug|Any CPU
+ {23B9D9A2-4AEE-47E6-97B5-060DF21539FB}.Code Analysis Debug|ARM.ActiveCfg = Debug|Any CPU
+ {23B9D9A2-4AEE-47E6-97B5-060DF21539FB}.Code Analysis Debug|ARM.Build.0 = Debug|Any CPU
+ {23B9D9A2-4AEE-47E6-97B5-060DF21539FB}.Code Analysis Debug|x64.ActiveCfg = Debug|Any CPU
+ {23B9D9A2-4AEE-47E6-97B5-060DF21539FB}.Code Analysis Debug|x64.Build.0 = Debug|Any CPU
+ {23B9D9A2-4AEE-47E6-97B5-060DF21539FB}.Code Analysis Debug|x86.ActiveCfg = Debug|Any CPU
+ {23B9D9A2-4AEE-47E6-97B5-060DF21539FB}.Code Analysis Debug|x86.Build.0 = Debug|Any CPU
+ {23B9D9A2-4AEE-47E6-97B5-060DF21539FB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {23B9D9A2-4AEE-47E6-97B5-060DF21539FB}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {23B9D9A2-4AEE-47E6-97B5-060DF21539FB}.Debug|ARM.ActiveCfg = Debug|Any CPU
+ {23B9D9A2-4AEE-47E6-97B5-060DF21539FB}.Debug|ARM.Build.0 = Debug|Any CPU
+ {23B9D9A2-4AEE-47E6-97B5-060DF21539FB}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {23B9D9A2-4AEE-47E6-97B5-060DF21539FB}.Debug|x64.Build.0 = Debug|Any CPU
+ {23B9D9A2-4AEE-47E6-97B5-060DF21539FB}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {23B9D9A2-4AEE-47E6-97B5-060DF21539FB}.Debug|x86.Build.0 = Debug|Any CPU
+ {23B9D9A2-4AEE-47E6-97B5-060DF21539FB}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {23B9D9A2-4AEE-47E6-97B5-060DF21539FB}.Release|Any CPU.Build.0 = Release|Any CPU
+ {23B9D9A2-4AEE-47E6-97B5-060DF21539FB}.Release|ARM.ActiveCfg = Release|Any CPU
+ {23B9D9A2-4AEE-47E6-97B5-060DF21539FB}.Release|ARM.Build.0 = Release|Any CPU
+ {23B9D9A2-4AEE-47E6-97B5-060DF21539FB}.Release|x64.ActiveCfg = Release|Any CPU
+ {23B9D9A2-4AEE-47E6-97B5-060DF21539FB}.Release|x64.Build.0 = Release|Any CPU
+ {23B9D9A2-4AEE-47E6-97B5-060DF21539FB}.Release|x86.ActiveCfg = Release|Any CPU
+ {23B9D9A2-4AEE-47E6-97B5-060DF21539FB}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@@ -1234,6 +1261,7 @@ Global
{26F0B8EF-92D4-4A23-ACB4-D1B662F0EEBE} = {D53BD452-F69F-4FB3-8B98-386EDA28A4C8}
{ED27A844-6870-4FE6-8FEF-3ABDD1ED6564} = {D53BD452-F69F-4FB3-8B98-386EDA28A4C8}
{E5E58613-82FC-44CD-B75F-4F1C7ED52D0D} = {D53BD452-F69F-4FB3-8B98-386EDA28A4C8}
+ {23B9D9A2-4AEE-47E6-97B5-060DF21539FB} = {E48AC786-E150-4F41-9A16-32F02E4493D8}
{D11C6664-1C4E-48F0-AA92-7F5BADC6F82C} = {CA01DAF5-8D9D-496E-9AD3-94BB7FBB2D34}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 5f895d71b8..fc52a8e666 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -4,16 +4,16 @@
jobs:
- job: Windows
pool:
- vmImage: 'vs2017-win2016'
+ vmImage: 'windows-2019'
variables:
buildConfiguration: 'Release'
steps:
- task: NuGetToolInstaller@0
- displayName: 'Pull in NuGet 4.9.2'
+ displayName: 'Pull in NuGet 5.8.1'
inputs:
- versionSpec: 4.9.2
+ versionSpec: 5.8.1
- powershell: |
reg DELETE "HKLM\Software\Microsoft\StrongName\Verification" /f
diff --git a/scripts/Build.ps1 b/scripts/Build.ps1
index 1e83bcd096..2f6aa55ed4 100644
--- a/scripts/Build.ps1
+++ b/scripts/Build.ps1
@@ -253,6 +253,8 @@ function Create-NugetPackages {
$packageOutDir = Join-Path $stagingDir "MSTestPackages"
$tfSrcPackageDir = Join-Path $env:TF_SRC_DIR "Package"
+ "" > "$stagingDir\_._"
+
# Copy over the nuspecs to the staging directory
if ($TFB_Official) {
$nuspecFiles = @("MSTest.TestAdapter.nuspec", "MSTest.TestAdapter.symbols.nuspec", "MSTest.TestFramework.nuspec", "MSTest.TestFramework.symbols.nuspec", "MSTest.Internal.TestFx.Documentation.nuspec")
@@ -264,6 +266,8 @@ function Create-NugetPackages {
foreach ($file in $nuspecFiles) {
Copy-Item $tfSrcPackageDir\$file $stagingDir -Force
}
+
+ Copy-Item (Join-Path $tfSrcPackageDir "Icon.png") $stagingDir -Force
Copy-Item -Path "$($env:TF_PACKAGES_DIR)\microsoft.testplatform.adapterutilities\$TestPlatformVersion\lib" -Destination "$($stagingDir)\Microsoft.TestPlatform.AdapterUtilities" -Recurse -Force
@@ -286,9 +290,8 @@ function Create-NugetPackages {
$version = $version + "-" + $versionSuffix
}
- Write-Verbose "$nugetExe pack $stagingDir\$file -OutputDirectory $packageOutDir -Version=$version -Properties Version=$version"
- & $nugetExe pack $stagingDir\$file -OutputDirectory $packageOutDir -Version $version -Properties Version=$version`;Srcroot=$env:TF_SRC_DIR`;Packagesroot=$env:TF_PACKAGES_DIR`;TestPlatformVersion=$TestPlatformVersion
-
+ Write-Verbose "$nugetExe pack $stagingDir\$file -OutputDirectory $packageOutDir -Version $version -Properties Version=$version``;Srcroot=$env:TF_SRC_DIR``;Packagesroot=$env:TF_PACKAGES_DIR``;TestPlatformVersion=$TestPlatformVersion``;NOWARN=`"NU5127,NU5128,NU5129`""
+ & $nugetExe pack $stagingDir\$file -OutputDirectory $packageOutDir -Version $version -Properties Version=$version`;Srcroot=$env:TF_SRC_DIR`;Packagesroot=$env:TF_PACKAGES_DIR`;TestPlatformVersion=$TestPlatformVersion`;NOWARN="NU5127,NU5128,NU5129"
if ($lastExitCode -ne 0) {
throw "Nuget pack failed with an exit code of '$lastExitCode'."
}
diff --git a/scripts/build/TestFx.Loc.targets b/scripts/build/TestFx.Loc.targets
index f151887fd7..16b75c229d 100644
--- a/scripts/build/TestFx.Loc.targets
+++ b/scripts/build/TestFx.Loc.targets
@@ -70,7 +70,14 @@
-
+
+ <_SourcePath>$(TestFxPackagesRoot)MSTest.Internal.TestFx.Localized.Documentation.1.0.0-build-20170420-1\contentFiles\any\any\$(LocDocumentationSubPath)
+
+
+ <_LocalizedFiles Include="$(_SourcePath)\**\*.*" />
+
+
+
diff --git a/scripts/common.lib.ps1 b/scripts/common.lib.ps1
index f7b370a602..d63a78aeb9 100644
--- a/scripts/common.lib.ps1
+++ b/scripts/common.lib.ps1
@@ -7,7 +7,7 @@
# Global Variables
#
$global:msbuildVersion = "15.0"
-$global:nugetVersion = "4.9.4"
+$global:nugetVersion = "5.8.1"
$global:vswhereVersion = "2.0.2"
$global:nugetUrl = "https://dist.nuget.org/win-x86-commandline/v$nugetVersion/NuGet.exe"
diff --git a/src/Package/Icon.png b/src/Package/Icon.png
new file mode 100644
index 0000000000..a0f1fdbf4d
Binary files /dev/null and b/src/Package/Icon.png differ
diff --git a/src/Package/MSTest.Internal.TestFx.Documentation.nuspec b/src/Package/MSTest.Internal.TestFx.Documentation.nuspec
index 7e88ac0e99..59a08d4000 100644
--- a/src/Package/MSTest.Internal.TestFx.Documentation.nuspec
+++ b/src/Package/MSTest.Internal.TestFx.Documentation.nuspec
@@ -12,6 +12,7 @@
https://github.com/microsoft/testfx
LICENSE
http://go.microsoft.com/fwlink/?LinkID=288859
+ Icon.png
© Microsoft Corporation. All rights reserved.
MSTest TestFramework MSTestV2
@@ -21,9 +22,13 @@
+
+
+
+
\ No newline at end of file
diff --git a/src/Package/MSTest.TestAdapter.Enu.nuspec b/src/Package/MSTest.TestAdapter.Enu.nuspec
index 31a8271ee9..b11801ed8a 100644
--- a/src/Package/MSTest.TestAdapter.Enu.nuspec
+++ b/src/Package/MSTest.TestAdapter.Enu.nuspec
@@ -8,16 +8,17 @@
Microsoft
Microsoft
- The adapter to discover and execute MSTest Framework based tests.
+ The adapter to discover and execute MSTest Framework based tests.
- Supported platforms:
- - .NET 4.5.0+
- - .NET Core 1.0+ (Universal Windows Apps 10+) (Visual Studio 2017)
- - ASP.NET Core 1.0+ (Visual Studio 2017)
+ Supported platforms:
+ - .NET 4.5.0+
+ - .NET Core 1.0+ (Universal Windows Apps 10+) (Visual Studio 2017)
+ - ASP.NET Core 1.0+ (Visual Studio 2017)
https://github.com/microsoft/testfx
LICENSE
http://go.microsoft.com/fwlink/?LinkID=288859
+ Icon.png
© Microsoft Corporation. All rights reserved.
MSTest TestFramework TestAdapter VisualStudio Unittest MSTestV2 Microsoft
@@ -35,6 +36,8 @@
+
+
@@ -68,5 +71,8 @@
+
+
+
\ No newline at end of file
diff --git a/src/Package/MSTest.TestAdapter.nuspec b/src/Package/MSTest.TestAdapter.nuspec
index 827dc74dd8..6f00113747 100644
--- a/src/Package/MSTest.TestAdapter.nuspec
+++ b/src/Package/MSTest.TestAdapter.nuspec
@@ -18,6 +18,7 @@
https://github.com/microsoft/testfx
LICENSE
http://go.microsoft.com/fwlink/?LinkID=288859
+ Icon.png
© Microsoft Corporation. All rights reserved.
MSTest TestFramework TestAdapter VisualStudio Unittest MSTestV2 Microsoft
@@ -35,6 +36,8 @@
+
+
@@ -73,5 +76,8 @@
+
+
+
\ No newline at end of file
diff --git a/src/Package/MSTest.TestAdapter.symbols.nuspec b/src/Package/MSTest.TestAdapter.symbols.nuspec
index b134110919..697c607c1b 100644
--- a/src/Package/MSTest.TestAdapter.symbols.nuspec
+++ b/src/Package/MSTest.TestAdapter.symbols.nuspec
@@ -8,16 +8,17 @@
Microsoft
Microsoft
- The adapter to discover and execute MSTest Framework based tests.
+ The adapter to discover and execute MSTest Framework based tests.
- Supported platforms:
- - .NET 4.5.0+
- - .NET Core 1.0+ (Universal Windows Apps 10+) (Visual Studio 2017)
- - ASP.NET Core 1.0+ (Visual Studio 2017)
+ Supported platforms:
+ - .NET 4.5.0+
+ - .NET Core 1.0+ (Universal Windows Apps 10+) (Visual Studio 2017)
+ - ASP.NET Core 1.0+ (Visual Studio 2017)
https://github.com/microsoft/testfx
LICENSE
http://go.microsoft.com/fwlink/?LinkID=288859
+ Icon.png
© Microsoft Corporation. All rights reserved.
MSTest TestFramework TestAdapter VisualStudio Unittest MSTestV2 Microsoft
@@ -25,6 +26,17 @@
+
+
+
+
+
+
+
+
+
+
+
@@ -35,19 +47,24 @@
-
+
+
+
+
+
+
-
-
+
+
-
-
+
+
@@ -62,6 +79,9 @@
+
+
+
@@ -73,5 +93,8 @@
+
+
+
\ No newline at end of file
diff --git a/src/Package/MSTest.TestFramework.enu.nuspec b/src/Package/MSTest.TestFramework.enu.nuspec
index 14e997a251..ea3bc49682 100644
--- a/src/Package/MSTest.TestFramework.enu.nuspec
+++ b/src/Package/MSTest.TestFramework.enu.nuspec
@@ -9,20 +9,21 @@
Microsoft
This is MSTest V2, the evolution of Microsoft's Test Framework.
- This is MSTest V2, the evolution of Microsoft's Test Framework.
+ This is MSTest V2, the evolution of Microsoft's Test Framework.
- Supported platforms:
- - .NET 4.5.0+
- - .NET Core 1.0+ (Universal Windows Apps 10+, DNX Core 5+)
- - ASP.NET Core 1.0+
+ Supported platforms:
+ - .NET 4.5.0+
+ - .NET Core 1.0+ (Universal Windows Apps 10+)
+ - ASP.NET Core 1.0+
- To discover and execute tests install MSTest.TestAdapter.
+ To discover and execute tests install MSTest.TestAdapter.
- To discover and execute tests for project.json based projects install dotnet-test-mstest.
+ To discover and execute tests for project.json based projects install dotnet-test-mstest.
https://github.com/microsoft/testfx
LICENSE
http://go.microsoft.com/fwlink/?LinkID=288859
+ Icon.png
© Microsoft Corporation. All rights reserved.
MSTest TestFramework Unittest MSTestV2 Microsoft Test Testing TDD Framework
@@ -35,6 +36,8 @@
+
+
@@ -56,8 +59,17 @@
+
+
+
+
+
+
+
+
+
-
\ No newline at end of file
+
diff --git a/src/Package/MSTest.TestFramework.nuspec b/src/Package/MSTest.TestFramework.nuspec
index be034ab1a2..d7698b58f9 100644
--- a/src/Package/MSTest.TestFramework.nuspec
+++ b/src/Package/MSTest.TestFramework.nuspec
@@ -23,6 +23,7 @@
https://github.com/microsoft/testfx
LICENSE
http://go.microsoft.com/fwlink/?LinkID=288859
+ Icon.png
© Microsoft Corporation. All rights reserved.
MSTest TestFramework Unittest MSTestV2 Microsoft Test Testing TDD Framework
@@ -35,36 +36,48 @@
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
\ No newline at end of file
+
diff --git a/src/Package/MSTest.TestFramework.symbols.nuspec b/src/Package/MSTest.TestFramework.symbols.nuspec
index f394319e7c..86d6927aac 100644
--- a/src/Package/MSTest.TestFramework.symbols.nuspec
+++ b/src/Package/MSTest.TestFramework.symbols.nuspec
@@ -8,22 +8,36 @@
Microsoft
Microsoft
- This is MSTest V2, the evolution of Microsoft's Test Framework.
+ This is MSTest V2, the evolution of Microsoft's Test Framework.
- Supported platforms:
- - .NET 4.5.0+
- - .NET Core 1.0+ (Universal Windows Apps 10+, DNX Core 5+)
- - ASP.NET Core 1.0+
+ Supported platforms:
+ - .NET 4.5.0+
+ - .NET Core 1.0+ (Universal Windows Apps 10+)
+ - ASP.NET Core 1.0+
- To discover and execute tests install MSTest.TestAdapter.
+ To discover and execute tests install MSTest.TestAdapter.
- To discover and execute tests for project.json based projects install dotnet-test-mstest.
+ To discover and execute tests for project.json based projects install dotnet-test-mstest.
https://github.com/microsoft/testfx
LICENSE
http://go.microsoft.com/fwlink/?LinkID=288859
+ Icon.png
© Microsoft Corporation. All rights reserved.
MSTest TestFramework Unittest MSTestV2 Microsoft Test Testing TDD Framework
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -35,7 +49,7 @@
-
+
@@ -46,21 +60,34 @@
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/TestFramework/Extension.Shared/TestContext.cs b/src/TestFramework/Extension.Shared/TestContext.cs
index 1db99d2f27..2641369742 100644
--- a/src/TestFramework/Extension.Shared/TestContext.cs
+++ b/src/TestFramework/Extension.Shared/TestContext.cs
@@ -3,11 +3,11 @@
namespace Microsoft.VisualStudio.TestTools.UnitTesting
{
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using System.Globalization;
- using System.Threading;
+ using global::System;
+ using global::System.Collections;
+ using global::System.Collections.Generic;
+ using global::System.Globalization;
+ using global::System.Threading;
///
/// TestContext class. This class should be fully abstract and not contain any
diff --git a/src/TestFramework/Extension.UWP/DeploymentItemAttribute.cs b/src/TestFramework/Extension.UWP/DeploymentItemAttribute.cs
index 13dbd70a9d..4fa5834e45 100644
--- a/src/TestFramework/Extension.UWP/DeploymentItemAttribute.cs
+++ b/src/TestFramework/Extension.UWP/DeploymentItemAttribute.cs
@@ -3,7 +3,7 @@
namespace Microsoft.VisualStudio.TestTools.UnitTesting
{
- using System;
+ using global::System;
///
/// Used to specify deployment item (file or directory) for per-test deployment.
diff --git a/src/TestFramework/Extension.WinUI/Extension.WinUI.csproj b/src/TestFramework/Extension.WinUI/Extension.WinUI.csproj
new file mode 100644
index 0000000000..58aa6b4c42
--- /dev/null
+++ b/src/TestFramework/Extension.WinUI/Extension.WinUI.csproj
@@ -0,0 +1,46 @@
+
+
+
+ Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions
+ Microsoft.VisualStudio.TestTools.UnitTesting
+ Microsoft Corporation
+ Extension.WinUI
+ Extension.WinUI
+ © Microsoft Corporation. All rights reserved.
+
+ net5.0-windows10.0.18362.0
+ 10.0.18362.0
+ 10.0.18362.0
+ 10.0.18362.0
+
+ false
+ win10-x86;win10-x64;win10-arm64
+
+
+
+ ..\..\..\
+ NetCore
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ $(OutputPath)\Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.XML
+ Extensions\WinUI
+
+
+
+
+
diff --git a/src/TestFramework/Extension.WinUI/UITestMethodAttribute.cs b/src/TestFramework/Extension.WinUI/UITestMethodAttribute.cs
new file mode 100644
index 0000000000..db1d3002d2
--- /dev/null
+++ b/src/TestFramework/Extension.WinUI/UITestMethodAttribute.cs
@@ -0,0 +1,85 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+
+namespace Microsoft.VisualStudio.TestTools.UnitTesting.AppContainer
+{
+ using global::System;
+ using global::System.Runtime.CompilerServices;
+
+ ///
+ /// Execute test code in UI thread for Windows store apps.
+ ///
+ public class UITestMethodAttribute : TestMethodAttribute
+ {
+ ///
+ /// Gets or sets the that should be used to invoke the UITestMethodAttribute.
+ /// If none is provided, it will try to use the Microsoft.UI.Xaml.Window.Current.DispatcherQueue, which only works on UWP.
+ ///
+ public static Microsoft.System.DispatcherQueue DispatcherQueue { get; set; }
+
+ ///
+ /// Executes the test method on the UI Thread.
+ ///
+ ///
+ /// The test method.
+ ///
+ ///
+ /// An array of instances.
+ ///
+ /// Throws when run on an async test method.
+ ///
+ public override TestResult[] Execute(ITestMethod testMethod)
+ {
+ var attrib = testMethod.GetAttributes(false);
+ if (attrib.Length > 0)
+ {
+ throw new NotSupportedException(FrameworkMessages.AsyncUITestMethodNotSupported);
+ }
+
+ TestResult result = null;
+
+ var dispatcher = DispatcherQueue ?? global::Microsoft.UI.Xaml.Window.Current?.DispatcherQueue;
+ if (dispatcher == null)
+ {
+ throw new InvalidOperationException(FrameworkMessages.AsyncUITestMethodWithNoDispatcherQueue);
+ }
+
+ if (dispatcher.HasThreadAccess)
+ {
+ try
+ {
+ result = testMethod.Invoke(Array.Empty