Include ASP packages in offline cache (#5124)

* Archive asp.net package references

* Archive asp.net package references

* Change the hash input so it's the same on all platforms

* Address PR comments
This commit is contained in:
Justin Goshi 2016-12-27 11:28:24 -10:00 committed by GitHub
parent 47fb245258
commit b72d625168
12 changed files with 138 additions and 11 deletions

View file

@ -127,6 +127,16 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
return new AndConstraint<DirectoryInfoAssertions>(new DirectoryInfoAssertions(dir));
}
public AndConstraint<DirectoryInfoAssertions> HaveDirectories(IEnumerable<string> expectedDirs)
{
foreach (var expectedDir in expectedDirs)
{
HaveDirectory(expectedDir);
}
return new AndConstraint<DirectoryInfoAssertions>(this);
}
public AndConstraint<DirectoryInfoAssertions> OnlyHaveFiles(IEnumerable<string> expectedFiles)
{
var actualFiles = _dirInfo.EnumerateFiles("*", SearchOption.TopDirectoryOnly).Select(f => f.Name);