From aad795f4321d640caa4ed0db846d374d10b0362e Mon Sep 17 00:00:00 2001 From: Morten Nielsen <1378165+dotMorten@users.noreply.github.com> Date: Thu, 24 Jun 2021 14:12:31 -0700 Subject: [PATCH] Upgraded winui to 0.8.0 (#888) The dispatcher has moved to a new namespace --- eng/Versions.props | 2 +- src/TestFramework/Extension.WinUI/UITestMethodAttribute.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/eng/Versions.props b/eng/Versions.props index 21ea752388..4abd1887f1 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -32,7 +32,7 @@ 1.6.0 5.3.0 - 0.5.0 + 0.8.0 4.8.3 4.3.0 diff --git a/src/TestFramework/Extension.WinUI/UITestMethodAttribute.cs b/src/TestFramework/Extension.WinUI/UITestMethodAttribute.cs index db1d3002d2..839a9d84eb 100644 --- a/src/TestFramework/Extension.WinUI/UITestMethodAttribute.cs +++ b/src/TestFramework/Extension.WinUI/UITestMethodAttribute.cs @@ -12,10 +12,10 @@ namespace Microsoft.VisualStudio.TestTools.UnitTesting.AppContainer public class UITestMethodAttribute : TestMethodAttribute { /// - /// Gets or sets the that should be used to invoke the UITestMethodAttribute. + /// 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; } + public static Microsoft.UI.Dispatching.DispatcherQueue DispatcherQueue { get; set; } /// /// Executes the test method on the UI Thread. @@ -59,7 +59,7 @@ public override TestResult[] Execute(ITestMethod testMethod) { var taskCompletionSource = new global::System.Threading.Tasks.TaskCompletionSource(); - if (!dispatcher.TryEnqueue(System.DispatcherQueuePriority.Normal, () => + if (!dispatcher.TryEnqueue(Microsoft.UI.Dispatching.DispatcherQueuePriority.Normal, () => { try {