Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
        public static void Cleanup(WpfTestApplicationApp application)
        {
            var isClosed = application.Close() || application.Kill();

            Assert.IsTrue(isClosed, "Не удалось завершить приложение WpfTestApplication.");
        }