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:
parent
47fb245258
commit
b72d625168
12 changed files with 138 additions and 11 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue