mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
- [x] **Tests:** Added/updated and all pass - [x] **Dev docs:** Added/updated <img width="460" height="1017" alt="image" src="https://github.com/user-attachments/assets/e72bf221-0875-48c3-b790-4ab1182c7d3a" /> I haven't touched the Run module, since we may deprecate it. Closes: #40788
37 lines
988 B
C#
37 lines
988 B
C#
// Copyright (c) Microsoft Corporation
|
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
using System.Diagnostics;
|
|
|
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
|
|
namespace Microsoft.FancyZonesEditor.UITests
|
|
{
|
|
[TestClass]
|
|
public class Init
|
|
{
|
|
private static Process? appDriver;
|
|
|
|
[AssemblyInitialize]
|
|
public static void SetupAll(TestContext context)
|
|
{
|
|
string winAppDriverPath = "C:\\Program Files (x86)\\Windows Application Driver\\WinAppDriver.exe";
|
|
context.WriteLine($"Attempting to launch WinAppDriver at: {winAppDriverPath}");
|
|
appDriver = Process.Start(winAppDriverPath);
|
|
}
|
|
|
|
[AssemblyCleanup]
|
|
public static void CleanupAll()
|
|
{
|
|
try
|
|
{
|
|
appDriver?.Kill();
|
|
}
|
|
catch
|
|
{
|
|
}
|
|
}
|
|
}
|
|
}
|