mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 03:07:04 +02:00
38 lines
1018 B
C#
38 lines
1018 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;
|
|
using System.Diagnostics;
|
|
using System.IO;
|
|
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
|
|
{
|
|
}
|
|
}
|
|
}
|
|
}
|