public static void Initialize(out WpfTestApplicationApp application) { var appsFolderEnvVar = ConfigurationManager.AppSettings.Get("AppsFolderEnvVar"); var appsFolder = Environment.GetEnvironmentVariable(appsFolderEnvVar); var appPath = appsFolder + ConfigurationManager.AppSettings.Get("PathToExe"); application = new WpfTestApplicationApp(appPath); application.Start(); }
public static void Cleanup(WpfTestApplicationApp application) { var isClosed = application.Close() || application.Kill(); Assert.IsTrue(isClosed, "Не удалось завершить приложение WpfTestApplication."); }