mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 11:46:30 +02:00
added assert messages
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
// Copyright (c) Microsoft Corporation
|
// Copyright (c) Microsoft Corporation
|
||||||
// The Microsoft Corporation licenses this file to you under the MIT license.
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
||||||
// See the LICENSE file in the project root for more information.
|
// See the LICENSE file in the project root for more information.
|
||||||
|
|
||||||
@@ -45,7 +45,7 @@ namespace Microsoft.FancyZones.UnitTests.Utils
|
|||||||
testContext.WriteLine(ex.Message);
|
testContext.WriteLine(ex.Message);
|
||||||
}
|
}
|
||||||
|
|
||||||
Assert.IsNotNull(FancyZonesProcess);
|
Assert.IsNotNull(FancyZonesProcess, "FancyZones process not started");
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Close()
|
public void Close()
|
||||||
|
|||||||
@@ -38,14 +38,14 @@ namespace Microsoft.FancyZonesEditor.UnitTests.Utils
|
|||||||
testContext.WriteLine(ex.Message);
|
testContext.WriteLine(ex.Message);
|
||||||
}
|
}
|
||||||
|
|
||||||
Assert.IsNotNull(Session);
|
Assert.IsNotNull(Session, "Session not initialized");
|
||||||
|
|
||||||
// Set implicit timeout to 1.5 seconds to make element search to retry every 500 ms for at most three times
|
// Set implicit timeout to 1.5 seconds to make element search to retry every 500 ms for at most three times
|
||||||
Session.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(1.5);
|
Session.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(1.5);
|
||||||
|
|
||||||
// Find main editor window
|
// Find main editor window
|
||||||
MainEditorWindow = Session.FindElementByAccessibilityId("MainWindow1");
|
MainEditorWindow = Session.FindElementByAccessibilityId("MainWindow1");
|
||||||
Assert.IsNotNull(MainEditorWindow);
|
Assert.IsNotNull(MainEditorWindow, "Main editor window not found");
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Close(TestContext testContext)
|
public void Close(TestContext testContext)
|
||||||
|
|||||||
Reference in New Issue
Block a user