Fix Binding Redirect Test and other fixes

This commit is contained in:
Bryan 2016-01-29 17:37:08 -08:00
parent 07fbb3d967
commit b8d54e5a0f
13 changed files with 85 additions and 107 deletions

View file

@ -25,12 +25,9 @@ namespace Microsoft.DotNet.Tools.Builder.Tests
_mainProject = mainProject;
_expectedOutput = expectedOutput;
// create unique directories in the 'temp' folder
var root = Temp.CreateDirectory();
// recursively copy projects to the temp dir and restore them
_tempProjectRoot = root.CopyDirectory(testProjectsRoot);
RunRestore(_tempProjectRoot.Path);
}
protected void TouchSourcesOfProject()
@ -115,11 +112,5 @@ namespace Microsoft.DotNet.Tools.Builder.Tests
return executablePath;
}
private void RunRestore(string args)
{
var restoreCommand = new RestoreCommand();
restoreCommand.Execute($"--quiet {args}").Should().Pass();
}
}
}