Skip to content

Commit

Permalink
Use correct reference comparison assert
Browse files Browse the repository at this point in the history
  • Loading branch information
Morten Nielsen committed Feb 21, 2024
1 parent 714622c commit 2f1c1ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/WinUIEx.Tests/WindowManagerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ await UITestHelper.RunWindowTest((window) =>
{
var manager1 = WindowManager.Get(window);
var manager2 = WindowManager.Get(window);
Assert.ReferenceEquals(manager1, manager2);
Assert.AreSame(manager1, manager2);
});
}

Expand All @@ -32,7 +32,7 @@ await UITestHelper.RunWindowTest((window) =>
{
var manager = WindowManager.Get(window);
Assert.IsNotNull(manager.AppWindow);
Assert.ReferenceEquals(manager.AppWindow, window.AppWindow);
Assert.AreSame(manager.AppWindow, window.AppWindow);
});
}

Expand Down

0 comments on commit 2f1c1ad

Please sign in to comment.