public static void TearDown() { if (isTestSolutionLoaded) { GallioTestShellHandler.RunWithWriteLock(delegate { SolutionManager.Instance.CloseSolution(SolutionManager.Instance.CurrentSolution); }); isTestSolutionLoaded = false; } GallioTestShellHandler.ShutDown(); }
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; }
public static void SetUp() { GallioTestShellHandler.Initialize(); }