Skip to content

Commit 0230c4f

Browse files
authored
Merge pull request Dirkster99#77 from ppalazkov/Dirkster74
74 Updated unit test CloseWithHiddenFloatingWindowsTest to be async
2 parents f1c3194 + 0544c7c commit 0230c4f

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

source/AutomationTest/Xceed.Wpf.AvalonDock.Test/LayoutAnchorableFloatingWindowControlTest.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,9 @@
1212
public class LayoutAnchorableFloatingWindowControlTest : AutomationTestBase
1313
{
1414
[TestMethod]
15-
public void CloseWithHiddenFloatingWindowsTest()
15+
public async Task CloseWithHiddenFloatingWindowsTest()
1616
{
17-
TestHost.SwitchToAppThread();
18-
Task<LayoutAnchorableFloatingWindowControlTestWindow> taskResult = WindowHelpers.CreateInvisibleWindowAsync<LayoutAnchorableFloatingWindowControlTestWindow>();
19-
taskResult.Wait();
20-
21-
LayoutAnchorableFloatingWindowControlTestWindow window = taskResult.Result;
17+
LayoutAnchorableFloatingWindowControlTestWindow window = await WindowHelpers.CreateInvisibleWindowAsync<LayoutAnchorableFloatingWindowControlTestWindow>();
2218
window.Window1.Float();
2319
Assert.IsTrue(window.Window1.IsFloating);
2420
var layoutSerializer = new XmlLayoutSerializer(window.dockingManager);

0 commit comments

Comments
 (0)