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