public ScriptExecutionTests(ITestOutputHelper testOutputHelper)
 {
     var dllCache = Path.Combine(Path.GetTempPath(), "dotnet-scripts");
     FileUtils.RemoveDirectory(dllCache);
     testOutputHelper.Capture();
     _scriptEnvironment = ScriptEnvironment.Default;
 }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 public void Dispose()
 {
     FileUtils.RemoveDirectory(Path);
 }