Test Infrastructure Updates

Creates a TestDirectory abstraction under TestInstance to manage creation of test-specific working directories
Enables TestAssetManager to create TestDirectory instances
Enables fluent addition of Environment Variables to TestCommand
Adds PathUtility support for ensuring a directory exists
This commit is contained in:
Piotr Puszkiewicz 2016-04-22 12:17:36 -07:00 committed by PiotrP
parent 6c1ef959cc
commit 94e620088e
5 changed files with 183 additions and 2 deletions

View file

@ -193,5 +193,12 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
process.Start();
return process;
}
public TestCommand WithEnvironmentVariable(string name, string value)
{
Environment.Add(name, value);
return this;
}
}
}