Esempio n. 1
0
        public static void TearDown()
        {
            if (isTestSolutionLoaded)
            {
                GallioTestShellHandler.RunWithWriteLock(delegate
                {
                    SolutionManager.Instance.CloseSolution(SolutionManager.Instance.CurrentSolution);
                });
                isTestSolutionLoaded = false;
            }

            GallioTestShellHandler.ShutDown();
        }
Esempio n. 2
0
        public static void LoadTestSolutionIfNeeded()
        {
            if (isTestSolutionLoaded)
            {
                return;
            }

            FileSystemPath testSolutionPath = new FileSystemPath(
                Path.Combine(Path.GetDirectoryName(AssemblyUtils.GetAssemblyLocalPath(GallioTestShellHandler.TestAssembly)),
                             @"..\..\TestSolution" + GallioTestShellHandler.VersionSuffix + ".sln"));

            GallioTestShellHandler.RunWithWriteLock(delegate
            {
#if RESHARPER_31 || RESHARPER_40 || RESHARPER_41
                SolutionManager.Instance.OpenSolution(testSolutionPath, new SimpleTaskExecutor());
#else
                SolutionManager.Instance.OpenSolution(testSolutionPath, SimpleTaskExecutor.Instance);
#endif
            });

            isTestSolutionLoaded = true;
        }
Esempio n. 3
0
 public static void SetUp()
 {
     GallioTestShellHandler.Initialize();
 }