dotnet add p2p -> dotnet add reference

This commit is contained in:
Krzysztof Wicher 2017-01-06 14:08:50 -08:00
parent 5bdbe354b2
commit 3ad9b72664
23 changed files with 55 additions and 55 deletions

View file

@ -5,22 +5,22 @@ using Microsoft.DotNet.Cli.Utils;
namespace Microsoft.DotNet.Tools.Test.Utilities
{
public sealed class AddP2PCommand : TestCommand
public sealed class AddReferenceCommand : TestCommand
{
private string _projectName = null;
public AddP2PCommand()
public AddReferenceCommand()
: base("dotnet")
{
}
public override CommandResult Execute(string args = "")
{
args = $"add {_projectName} p2p {args}";
args = $"add {_projectName} reference {args}";
return base.ExecuteWithCapturedOutput(args);
}
public AddP2PCommand WithProject(string projectName)
public AddReferenceCommand WithProject(string projectName)
{
_projectName = projectName;
return this;