Skip to content

Commit

Permalink
(chocolatey#798) Add tests for install/upgrade pin parameter
Browse files Browse the repository at this point in the history
Add specs for pin parameter for the install/upgrade commands
  • Loading branch information
TheCakeIsNaOH committed Jan 17, 2022
1 parent ffdb099 commit e505a82
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,24 @@ public void should_add_short_version_of_password_to_the_option_set()
{
optionSet.Contains("p").ShouldBeTrue();
}

[Fact]
public void should_add_pin_to_the_option_set()
{
optionSet.Contains("pinpackage").ShouldBeTrue();
}

[Fact]
public void should_add_long_version_of_pin_to_the_option_set()
{
optionSet.Contains("pin-package").ShouldBeTrue();
}

[Fact]
public void should_add_short_version_of_pin_to_the_option_set()
{
optionSet.Contains("pin").ShouldBeTrue();
}
}

public class when_handling_additional_argument_parsing : ChocolateyInstallCommandSpecsBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,24 @@ public void should_add_short_version_of_password_to_the_option_set()
{
optionSet.Contains("p").ShouldBeTrue();
}

[Fact]
public void should_add_pin_to_the_option_set()
{
optionSet.Contains("pinpackage").ShouldBeTrue();
}

[Fact]
public void should_add_long_version_of_pin_to_the_option_set()
{
optionSet.Contains("pin-package").ShouldBeTrue();
}

[Fact]
public void should_add_short_version_of_pin_to_the_option_set()
{
optionSet.Contains("pin").ShouldBeTrue();
}
}

public class when_handling_additional_argument_parsing : ChocolateyUpgradeCommandSpecsBase
Expand Down

0 comments on commit e505a82

Please sign in to comment.