Skip to content

Commit 8116f2b

Browse files
committed
(#1479) Add tests for remembered args args for uninstall
1 parent d627fcb commit 8116f2b

File tree

1 file changed

+72
-0
lines changed

1 file changed

+72
-0
lines changed

src/chocolatey.tests/infrastructure.app/commands/ChocolateyUninstallCommandSpecs.cs

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,78 @@ public void should_add_short_version_of_skip_hooks_to_the_option_set()
181181
{
182182
optionSet.Contains("skiphooks").ShouldBeTrue();
183183
}
184+
185+
[Fact]
186+
public void should_add_short_version_of_userememberedargs_to_the_option_set()
187+
{
188+
optionSet.Contains("userememberedargs").ShouldBeTrue();
189+
}
190+
191+
[Fact]
192+
public void should_add_short_version_of_userememberedarguments_to_the_option_set()
193+
{
194+
optionSet.Contains("userememberedarguments").ShouldBeTrue();
195+
}
196+
197+
[Fact]
198+
public void should_add_short_version_of_userememberedoptions_to_the_option_set()
199+
{
200+
optionSet.Contains("userememberedoptions").ShouldBeTrue();
201+
}
202+
203+
[Fact]
204+
public void should_add_userememberedargs_to_the_option_set()
205+
{
206+
optionSet.Contains("use-remembered-args").ShouldBeTrue();
207+
}
208+
209+
[Fact]
210+
public void should_add_userememberedarguments_to_the_option_set()
211+
{
212+
optionSet.Contains("use-remembered-arguments").ShouldBeTrue();
213+
}
214+
215+
[Fact]
216+
public void should_add_userememberedoptions_to_the_option_set()
217+
{
218+
optionSet.Contains("use-remembered-options").ShouldBeTrue();
219+
}
220+
221+
[Fact]
222+
public void should_add_short_version_of_ignorerememberedargs_to_the_option_set()
223+
{
224+
optionSet.Contains("ignorerememberedargs").ShouldBeTrue();
225+
}
226+
227+
[Fact]
228+
public void should_add_short_version_of_ignorerememberedarguments_to_the_option_set()
229+
{
230+
optionSet.Contains("ignorerememberedarguments").ShouldBeTrue();
231+
}
232+
233+
[Fact]
234+
public void should_add_short_version_of_ignorerememberedoptions_to_the_option_set()
235+
{
236+
optionSet.Contains("ignorerememberedoptions").ShouldBeTrue();
237+
}
238+
239+
[Fact]
240+
public void should_add_ignorerememberedargs_to_the_option_set()
241+
{
242+
optionSet.Contains("ignore-remembered-args").ShouldBeTrue();
243+
}
244+
245+
[Fact]
246+
public void should_add_ignorerememberedarguments_to_the_option_set()
247+
{
248+
optionSet.Contains("ignore-remembered-arguments").ShouldBeTrue();
249+
}
250+
251+
[Fact]
252+
public void should_add_ignorerememberedoptions_to_the_option_set()
253+
{
254+
optionSet.Contains("ignore-remembered-options").ShouldBeTrue();
255+
}
184256
}
185257

186258
public class when_handling_additional_argument_parsing : ChocolateyUninstallCommandSpecsBase

0 commit comments

Comments
 (0)