Skip to content

Commit 5bc3003

Browse files
committed
Fix tests
1 parent 272f232 commit 5bc3003

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/SeqCli.Tests/Cli/CommandLineHostTests.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ public async Task CommandLineHostPicksCorrectCommand()
2121
{
2222
new(
2323
new Lazy<Command>(() => new ActionCommand(() => executed.Add("test"))),
24-
new CommandMetadata {Name = "test", HelpText = "help"}),
24+
new CommandMetadata {Name = "test", HelpText = "help", Platforms = SupportedPlatforms.All}),
2525
new(
2626
new Lazy<Command>(() => new ActionCommand(() => executed.Add("test2"))),
27-
new CommandMetadata {Name = "test2", HelpText = "help"})
27+
new CommandMetadata {Name = "test2", HelpText = "help", Platforms = SupportedPlatforms.All})
2828
};
2929
var commandLineHost = new CommandLineHost(availableCommands);
3030
await commandLineHost.Run(["test"],new LoggingLevelSwitch());
@@ -40,7 +40,7 @@ public async Task PrereleaseCommandsAreIgnoredWithoutFlag()
4040
{
4141
new(
4242
new Lazy<Command>(() => new ActionCommand(() => executed.Add("test"))),
43-
new CommandMetadata {Name = "test", HelpText = "help", Visibility = FeatureVisibility.Preview}),
43+
new CommandMetadata {Name = "test", HelpText = "help", Visibility = FeatureVisibility.Preview, Platforms = SupportedPlatforms.All}),
4444
};
4545
var commandLineHost = new CommandLineHost(availableCommands);
4646
var exit = await commandLineHost.Run(["test"],new LoggingLevelSwitch());
@@ -61,10 +61,10 @@ public async Task WhenMoreThanOneSubcommandAndTheUserRunsWithSubcommandEnsurePic
6161
{
6262
new(
6363
new Lazy<Command>(() => new ActionCommand(() => executed.Add("test-subcommand1"))),
64-
new CommandMetadata {Name = "test", SubCommand = "subcommand1", HelpText = "help"}),
64+
new CommandMetadata {Name = "test", SubCommand = "subcommand1", HelpText = "help", Platforms = SupportedPlatforms.All}),
6565
new(
6666
new Lazy<Command>(() => new ActionCommand(() => executed.Add("test-subcommand2"))),
67-
new CommandMetadata {Name = "test", SubCommand = "subcommand2", HelpText = "help"})
67+
new CommandMetadata {Name = "test", SubCommand = "subcommand2", HelpText = "help", Platforms = SupportedPlatforms.All})
6868
};
6969
var commandLineHost = new CommandLineHost(availableCommands);
7070
await commandLineHost.Run(["test", "subcommand2"], new LoggingLevelSwitch());
@@ -82,7 +82,7 @@ public async Task VerboseOptionSetsLoggingLevelToInformation()
8282
{
8383
new(
8484
new Lazy<Command>(() => new ActionCommand(() => { })),
85-
new CommandMetadata {Name = "test", HelpText = "help"})
85+
new CommandMetadata {Name = "test", HelpText = "help", Platforms = SupportedPlatforms.All})
8686
};
8787

8888
var commandLineHost = new CommandLineHost(availableCommands);

0 commit comments

Comments
 (0)