mirror of
https://github.com/Tyrrrz/CliFx.git
synced 2025-10-25 15:19:17 +00:00
Rename WithCommand* to AddCommand* on CliApplicationBuilder
This commit is contained in:
@@ -204,7 +204,7 @@ namespace CliFx.Tests
|
||||
public async Task RunAsync_Test(IReadOnlyList<Type> commandTypes, IReadOnlyList<string> commandLineArguments)
|
||||
{
|
||||
// Arrange
|
||||
var application = new CliApplicationBuilder().WithCommands(commandTypes).Build();
|
||||
var application = new CliApplicationBuilder().AddCommands(commandTypes).Build();
|
||||
|
||||
// Act
|
||||
var exitCodeValue = await application.RunAsync(commandLineArguments);
|
||||
@@ -218,7 +218,7 @@ namespace CliFx.Tests
|
||||
public async Task RunAsync_Negative_Test(IReadOnlyList<Type> commandTypes, IReadOnlyList<string> commandLineArguments)
|
||||
{
|
||||
// Arrange
|
||||
var application = new CliApplicationBuilder().WithCommands(commandTypes).Build();
|
||||
var application = new CliApplicationBuilder().AddCommands(commandTypes).Build();
|
||||
|
||||
// Act
|
||||
var exitCodeValue = await application.RunAsync(commandLineArguments);
|
||||
|
||||
Reference in New Issue
Block a user