Skip to content

Commit aad795f

Browse files
authored
Upgraded winui to 0.8.0 (microsoft#888)
The dispatcher has moved to a new namespace
1 parent 6e699eb commit aad795f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

eng/Versions.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<SystemReflectionMetadataVersion>1.6.0</SystemReflectionMetadataVersion>
3333
<!-- UWP and WinUI dependencies -->
3434
<MicrosoftNETCoreUniversalWindowsPlatformVersion>5.3.0</MicrosoftNETCoreUniversalWindowsPlatformVersion>
35-
<MicrosoftProjectReunionVersion>0.5.0</MicrosoftProjectReunionVersion>
35+
<MicrosoftProjectReunionVersion>0.8.0</MicrosoftProjectReunionVersion>
3636
<!-- / UWP and WinUI dependencies -->
3737
<MoqVersion>4.8.3</MoqVersion>
3838
<CastleCoreVersion>4.3.0</CastleCoreVersion>

src/TestFramework/Extension.WinUI/UITestMethodAttribute.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ namespace Microsoft.VisualStudio.TestTools.UnitTesting.AppContainer
1212
public class UITestMethodAttribute : TestMethodAttribute
1313
{
1414
/// <summary>
15-
/// Gets or sets the <see cref="Microsoft.System.DispatcherQueue"/> that should be used to invoke the UITestMethodAttribute.
15+
/// Gets or sets the <see cref="Microsoft.UI.Dispatching.DispatcherQueue"/> that should be used to invoke the UITestMethodAttribute.
1616
/// If none is provided, it will try to use the Microsoft.UI.Xaml.Window.Current.DispatcherQueue, which only works on UWP.
1717
/// </summary>
18-
public static Microsoft.System.DispatcherQueue DispatcherQueue { get; set; }
18+
public static Microsoft.UI.Dispatching.DispatcherQueue DispatcherQueue { get; set; }
1919

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

62-
if (!dispatcher.TryEnqueue(System.DispatcherQueuePriority.Normal, () =>
62+
if (!dispatcher.TryEnqueue(Microsoft.UI.Dispatching.DispatcherQueuePriority.Normal, () =>
6363
{
6464
try
6565
{

0 commit comments

Comments
 (0)