mirror of
https://github.com/PacktPublishing/Learn-WinUI-3-Second-Edition.git
synced 2026-06-20 12:23:09 +00:00
Add chapter 10 sample project
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user