From 627bedb3c54c19f8eddd95865fce90bdbb9f3134 Mon Sep 17 00:00:00 2001 From: TheCakeIsNaOH Date: Thu, 10 Mar 2022 17:42:03 -0600 Subject: [PATCH] (#1479) Add tests for remembered args args for uninstall --- .../ChocolateyUninstallCommandSpecs.cs | 72 +++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/src/chocolatey.tests/infrastructure.app/commands/ChocolateyUninstallCommandSpecs.cs b/src/chocolatey.tests/infrastructure.app/commands/ChocolateyUninstallCommandSpecs.cs index 8a3433c2c3..8c801922da 100644 --- a/src/chocolatey.tests/infrastructure.app/commands/ChocolateyUninstallCommandSpecs.cs +++ b/src/chocolatey.tests/infrastructure.app/commands/ChocolateyUninstallCommandSpecs.cs @@ -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