Fix BuiltInCommandTests.
I forgot to mock out the environment on one of the builtin command tests.
This commit is contained in:
parent
0336f6bb34
commit
d51c920da8
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue