mirror of
https://github.com/PacktPublishing/Learn-WinUI-3-Second-Edition.git
synced 2026-06-20 12:23:09 +00:00
24 lines
661 B
C#
24 lines
661 B
C#
using Microsoft.Windows.ApplicationModel.DynamicDependency;
|
|
|
|
[assembly: WinUITestTarget(typeof(TemplateStudioSampleApp.App))]
|
|
|
|
namespace TemplateStudioSampleApp.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();
|
|
}
|
|
}
|