public static void AssemblyCleanup() { // Stop and remove the Etw.Service service. EtwHelper.StopAndRemoveETWService(); TestHelper.Uninitialize(); }
public static void AssemblySetup(TestContext context) { Verify.AreEqual(0, WinRTHelper_Register()); TestHelper.Initialize(); // Install and Start the Etw.Service service to enable the use of EtwWaiter. EtwHelper.InstallAndStartETWService(); bool installApp = false; if (context.Properties.Contains("InstallApp") && (bool.TryParse(context.Properties["InstallApp"].ToString(), out installApp)) && installApp) { string certToDeploy = Path.Combine(TAEFHelper.GetTestDeploymentDirectory(), Constants.CertificateFileName); InstallHelper.InstallCertFile(certToDeploy); string vcLibsToDeploy = Path.Combine(TAEFHelper.GetTestDeploymentDirectory(), Constants.VCLibsPackageFileName); string winUIToDeploy = Path.Combine(TAEFHelper.GetTestDeploymentDirectory(), Constants.WinUIPackageFileName); string appxToDeploy = Path.Combine(TAEFHelper.GetTestDeploymentDirectory(), Constants.PackageFileName); Impersonater.RunAs(Impersonater.RunAsUser.RestrictedUser, () => InstallHelper.InstallPackage(appxToDeploy, vcLibsToDeploy, winUIToDeploy)); } }