Files
GZStudio/GZStudio.Tests.MSTest/Initialize.cs
T
2024-08-27 23:27:37 +08:00

24 lines
631 B
C#

using Microsoft.Windows.ApplicationModel.DynamicDependency;
[assembly: WinUITestTarget(typeof(GZStudio.App))]
namespace GZStudio.Tests.MSTest;
[TestClass]
public class Initialize
{
[AssemblyInitialize]
public static void AssemblyInitialize(TestContext context)
{
// TODO: Initialize the appropriate version of the Windows App SDK.
// This is required when testing MSIX apps that are framework-dependent on the Windows App SDK.
Bootstrap.TryInitialize(0x00010001, out var _);
}
[AssemblyCleanup]
public static void AssemblyCleanup()
{
Bootstrap.Shutdown();
}
}