Move all test commands to DotNetCommand base

This commit is contained in:
Piotr Puszkiewicz 2017-03-14 14:07:51 -07:00
parent cb52224272
commit fac34c7b3b
18 changed files with 19 additions and 107 deletions

View file

@ -7,7 +7,7 @@ using NuGet.Frameworks;
namespace Microsoft.DotNet.Tools.Test.Utilities
{
public sealed class BuildCommand : TestCommand
public sealed class BuildCommand : DotnetCommand
{
private bool _captureOutput;
@ -26,11 +26,6 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
private DirectoryInfo _workingDirectory;
public BuildCommand()
: base("dotnet")
{
}
public override CommandResult Execute(string args = "")
{
args = $"build {GetNoDependencies()} {GetProjectFile()} {GetOutputPath()} {GetConfiguration()} {GetFramework()} {GetRuntime()} {args}";