Refactor output directory code
This commit is contained in:
parent
4908436958
commit
0f82ae37f3
49 changed files with 836 additions and 396 deletions
|
@ -21,9 +21,10 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
|
|||
_dirInfo = dir;
|
||||
}
|
||||
|
||||
public DirectoryInfo DirectoryInfo => _dirInfo;
|
||||
|
||||
public AndConstraint<DirectoryInfoAssertions> Exist()
|
||||
{
|
||||
_dirInfo.Exists.Should().BeTrue();
|
||||
Execute.Assertion.ForCondition(_dirInfo.Exists)
|
||||
.FailWith("Expected directory {0} does not exist.", _dirInfo.FullName);
|
||||
return new AndConstraint<DirectoryInfoAssertions>(this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue