Move the help command it it's own class.

Also fix the help command to work with intrinsic commands.
This commit is contained in:
Austin Wise 2016-02-04 12:41:50 -08:00
parent f7cba8a630
commit 67b4012e45
4 changed files with 107 additions and 63 deletions

View file

@ -169,6 +169,20 @@ namespace Microsoft.DotNet.Tests.EndToEnd
TestExecutable(OutputDirectory, publishCommand.GetOutputExecutable(), s_expectedOutput);
}
[Fact]
public void TestDotnetHelp()
{
var helpCommand = new HelpCommand();
helpCommand.Execute().Should().Pass();
}
[Fact]
public void TestDotnetHelpBuild()
{
var helpCommand = new HelpCommand();
helpCommand.Execute("build").Should().Pass();
}
private void TestInstanceSetup()
{
var root = Temp.CreateDirectory();