Skip to content

Commit

Permalink
(chocolatey#1479) Add tests for remembered args args for uninstall
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCakeIsNaOH committed Jun 27, 2022
1 parent c71a56b commit 627bedb
Showing 1 changed file with 72 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,78 @@ public void should_add_short_version_of_skippowershell_to_the_option_set()
{
optionSet.Contains("n").ShouldBeTrue();
}

[Fact]
public void should_add_short_version_of_userememberedargs_to_the_option_set()
{
optionSet.Contains("userememberedargs").ShouldBeTrue();
}

[Fact]
public void should_add_short_version_of_userememberedarguments_to_the_option_set()
{
optionSet.Contains("userememberedarguments").ShouldBeTrue();
}

[Fact]
public void should_add_short_version_of_userememberedoptions_to_the_option_set()
{
optionSet.Contains("userememberedoptions").ShouldBeTrue();
}

[Fact]
public void should_add_userememberedargs_to_the_option_set()
{
optionSet.Contains("use-remembered-args").ShouldBeTrue();
}

[Fact]
public void should_add_userememberedarguments_to_the_option_set()
{
optionSet.Contains("use-remembered-arguments").ShouldBeTrue();
}

[Fact]
public void should_add_userememberedoptions_to_the_option_set()
{
optionSet.Contains("use-remembered-options").ShouldBeTrue();
}

[Fact]
public void should_add_short_version_of_ignorerememberedargs_to_the_option_set()
{
optionSet.Contains("ignorerememberedargs").ShouldBeTrue();
}

[Fact]
public void should_add_short_version_of_ignorerememberedarguments_to_the_option_set()
{
optionSet.Contains("ignorerememberedarguments").ShouldBeTrue();
}

[Fact]
public void should_add_short_version_of_ignorerememberedoptions_to_the_option_set()
{
optionSet.Contains("ignorerememberedoptions").ShouldBeTrue();
}

[Fact]
public void should_add_ignorerememberedargs_to_the_option_set()
{
optionSet.Contains("ignore-remembered-args").ShouldBeTrue();
}

[Fact]
public void should_add_ignorerememberedarguments_to_the_option_set()
{
optionSet.Contains("ignore-remembered-arguments").ShouldBeTrue();
}

[Fact]
public void should_add_ignorerememberedoptions_to_the_option_set()
{
optionSet.Contains("ignore-remembered-options").ShouldBeTrue();
}
}

public class when_handling_additional_argument_parsing : ChocolateyUninstallCommandSpecsBase
Expand Down

0 comments on commit 627bedb

Please sign in to comment.