You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Spectre.Console.Tests.Unit.Cli.CommandAppTests+Remaining.Should_Add_Unknown_Flags_To_Remaining_Arguments_Branch_Default_Command
Source: CommandAppTests.Remaining.cs line 41
Duration: 46 ms
Message:
Shouldly.ShouldAssertException : context.Remaining.Parsed.Contains(name)
should be
True
but was
False
Stack Trace:
CommandContextExtensions.ShouldHaveRemainingArgument(CommandContext context, String name, String[] values) line 17
Remaining.Should_Add_Unknown_Flags_To_Remaining_Arguments_Branch_Default_Command() line 58
RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
Expected behavior
The above tests both pass.
The remaining arguments contain '--felix'.
Additional context
I wrote several unit tests to validate the issue only occurs when a default command has been set on a branch (or branch of a branch), see:
Information
Describe the bug
Parsed unknown flag is not being added to remaining arguments for a branch (or branch of a branch) with a default command.
To Reproduce
Error message (showing empty remaining arguments):
Expected behavior
The above tests both pass.
The remaining arguments contain '--felix'.
Additional context
I wrote several unit tests to validate the issue only occurs when a default command has been set on a branch (or branch of a branch), see:
Please upvote 👍 this issue if you are interested in it.
The text was updated successfully, but these errors were encountered: