public ScriptExecutionTests(ITestOutputHelper testOutputHelper) { var dllCache = Path.Combine(Path.GetTempPath(), "dotnet-scripts"); FileUtils.RemoveDirectory(dllCache); testOutputHelper.Capture(); _scriptEnvironment = ScriptEnvironment.Default; }
public static void RemovePackageFromGlobalNugetCache(string packageName) { var pathToGlobalPackagesFolder = TestPathUtils.GetPathToGlobalPackagesFolder(); var pathToAutoMapperPackage = Directory.GetDirectories(pathToGlobalPackagesFolder).Single(d => d.Contains(packageName, StringComparison.OrdinalIgnoreCase)); FileUtils.RemoveDirectory(pathToAutoMapperPackage); }
public void Dispose() { FileUtils.RemoveDirectory(Path); }