Skip to content

Commit

Permalink
(chocolatey#2050) Add basic unit test for new option
Browse files Browse the repository at this point in the history
This commit adds a simple unit test to verify that the --ignore-pin
option appears in the OptionSet that is generated.
  • Loading branch information
gep13 committed Apr 25, 2024
1 parent 97b3a6f commit 567c2e2
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,12 @@ public void Should_add_short_version_of_skip_hooks_to_the_option_set()
{
_optionSet.Contains("skiphooks").Should().BeTrue();
}

[Fact]
public void Should_add_ignore_pin_to_the_option_set()
{
_optionSet.Contains("ignore-pin").Should().BeTrue();
}
}

public class When_handling_additional_argument_parsing : ChocolateyUpgradeCommandSpecsBase
Expand Down

0 comments on commit 567c2e2

Please sign in to comment.