Fix BuiltInCommandTests.

I forgot to mock out the environment on one of the builtin command tests.
This commit is contained in:
Eric Erhardt 2016-05-10 18:46:47 -05:00
parent 0336f6bb34
commit d51c920da8

View file

@ -21,7 +21,7 @@ namespace Microsoft.DotNet.Cli.Utils
Func<string[], int> testCommand = args => args.Length;
string[] testCommandArgs = new[] { "1", "2" };
var builtInCommand = new BuiltInCommand("fakeCommand", testCommandArgs, testCommand);
var builtInCommand = new BuiltInCommand("fakeCommand", testCommandArgs, testCommand, new TestBuiltInCommandEnvironment());
CommandResult result = builtInCommand.Execute();
Assert.Equal(testCommandArgs.Length, result.ExitCode);