Exemplo n.º 1
0
        public static void ClassInit(TestContext TC)
        {
            string sampleSolutionFolder = TestResources.GetTestResourcesFolder(@"Solutions\EnvsTest");

            SolutionFolder = TestResources.GetTestTempFolder(@"Solutions\EnvsTest");
            if (Directory.Exists(SolutionFolder))
            {
                Directory.Delete(SolutionFolder, true);
            }
            CopyDir.Copy(sampleSolutionFolder, SolutionFolder);

            mGingerAutomator = GingerAutomator.StartSession();
            mGingerAutomator.OpenSolution(SolutionFolder);
        }
Exemplo n.º 2
0
        private static void CreateTestSolution()
        {
            string sourceFolder = TestResources.GetTestResourcesFolder(@"Solutions\ReportSR");

            solutionFolder = TestResources.GetTestTempFolder(@"Solutions\ReportSR");
            if (Directory.Exists(solutionFolder))
            {
                Directory.Delete(solutionFolder, true);
            }
            CopyDir.Copy(sourceFolder, solutionFolder);

            SolutionRepository SR = new SolutionRepository();

            SR = Ginger.App.CreateGingerSolutionRepository();
            SR.Open(solutionFolder);

            SR.Close();
        }