Skip to content

Commit

Permalink
Upgraded winui to 0.8.0 (microsoft#888)
Browse files Browse the repository at this point in the history
The dispatcher has moved to a new namespace
  • Loading branch information
dotMorten committed Jun 24, 2021
1 parent 6e699eb commit aad795f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion eng/Versions.props
Expand Up @@ -32,7 +32,7 @@
<SystemReflectionMetadataVersion>1.6.0</SystemReflectionMetadataVersion>
<!-- UWP and WinUI dependencies -->
<MicrosoftNETCoreUniversalWindowsPlatformVersion>5.3.0</MicrosoftNETCoreUniversalWindowsPlatformVersion>
<MicrosoftProjectReunionVersion>0.5.0</MicrosoftProjectReunionVersion>
<MicrosoftProjectReunionVersion>0.8.0</MicrosoftProjectReunionVersion>
<!-- / UWP and WinUI dependencies -->
<MoqVersion>4.8.3</MoqVersion>
<CastleCoreVersion>4.3.0</CastleCoreVersion>
Expand Down
6 changes: 3 additions & 3 deletions src/TestFramework/Extension.WinUI/UITestMethodAttribute.cs
Expand Up @@ -12,10 +12,10 @@ namespace Microsoft.VisualStudio.TestTools.UnitTesting.AppContainer
public class UITestMethodAttribute : TestMethodAttribute
{
/// <summary>
/// Gets or sets the <see cref="Microsoft.System.DispatcherQueue"/> that should be used to invoke the UITestMethodAttribute.
/// Gets or sets the <see cref="Microsoft.UI.Dispatching.DispatcherQueue"/> 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.
/// </summary>
public static Microsoft.System.DispatcherQueue DispatcherQueue { get; set; }
public static Microsoft.UI.Dispatching.DispatcherQueue DispatcherQueue { get; set; }

/// <summary>
/// Executes the test method on the UI Thread.
Expand Down Expand Up @@ -59,7 +59,7 @@ public override TestResult[] Execute(ITestMethod testMethod)
{
var taskCompletionSource = new global::System.Threading.Tasks.TaskCompletionSource<object>();

if (!dispatcher.TryEnqueue(System.DispatcherQueuePriority.Normal, () =>
if (!dispatcher.TryEnqueue(Microsoft.UI.Dispatching.DispatcherQueuePriority.Normal, () =>
{
try
{
Expand Down

0 comments on commit aad795f

Please sign in to comment.