From 75298e2b2a14c5f69794c11f807778beb88718d4 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 3442cacdd8..af710ed6b7 100644 --- a/src/chocolatey.tests/infrastructure.app/commands/ChocolateyUninstallCommandSpecs.cs +++ b/src/chocolatey.tests/infrastructure.app/commands/ChocolateyUninstallCommandSpecs.cs @@ -182,6 +182,78 @@ public void Should_add_short_version_of_skip_hooks_to_the_option_set() { _optionSet.Contains("skiphooks").Should().BeTrue(); } + + [Fact] + public void Should_add_short_version_of_userememberedargs_to_the_option_set() + { + _optionSet.Contains("userememberedargs").Should().BeTrue(); + } + + [Fact] + public void Should_add_short_version_of_userememberedarguments_to_the_option_set() + { + _optionSet.Contains("userememberedarguments").Should().BeTrue(); + } + + [Fact] + public void Should_add_short_version_of_userememberedoptions_to_the_option_set() + { + _optionSet.Contains("userememberedoptions").Should().BeTrue(); + } + + [Fact] + public void Should_add_userememberedargs_to_the_option_set() + { + _optionSet.Contains("use-remembered-args").Should().BeTrue(); + } + + [Fact] + public void Should_add_userememberedarguments_to_the_option_set() + { + _optionSet.Contains("use-remembered-arguments").Should().BeTrue(); + } + + [Fact] + public void Should_add_userememberedoptions_to_the_option_set() + { + _optionSet.Contains("use-remembered-options").Should().BeTrue(); + } + + [Fact] + public void Should_add_short_version_of_ignorerememberedargs_to_the_option_set() + { + _optionSet.Contains("ignorerememberedargs").Should().BeTrue(); + } + + [Fact] + public void Should_add_short_version_of_ignorerememberedarguments_to_the_option_set() + { + _optionSet.Contains("ignorerememberedarguments").Should().BeTrue(); + } + + [Fact] + public void Should_add_short_version_of_ignorerememberedoptions_to_the_option_set() + { + _optionSet.Contains("ignorerememberedoptions").Should().BeTrue(); + } + + [Fact] + public void Should_add_ignorerememberedargs_to_the_option_set() + { + _optionSet.Contains("ignore-remembered-args").Should().BeTrue(); + } + + [Fact] + public void Should_add_ignorerememberedarguments_to_the_option_set() + { + _optionSet.Contains("ignore-remembered-arguments").Should().BeTrue(); + } + + [Fact] + public void Should_add_ignorerememberedoptions_to_the_option_set() + { + _optionSet.Contains("ignore-remembered-options").Should().BeTrue(); + } } public class When_handling_additional_argument_parsing : ChocolateyUninstallCommandSpecsBase