Skip to content

Commit 627bedb

Browse files
committed
(#1479) Add tests for remembered args args for uninstall
1 parent c71a56b commit 627bedb

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
@@ -169,6 +169,78 @@ public void should_add_short_version_of_skippowershell_to_the_option_set()
169169
{
170170
optionSet.Contains("n").ShouldBeTrue();
171171
}
172+
173+
[Fact]
174+
public void should_add_short_version_of_userememberedargs_to_the_option_set()
175+
{
176+
optionSet.Contains("userememberedargs").ShouldBeTrue();
177+
}
178+
179+
[Fact]
180+
public void should_add_short_version_of_userememberedarguments_to_the_option_set()
181+
{
182+
optionSet.Contains("userememberedarguments").ShouldBeTrue();
183+
}
184+
185+
[Fact]
186+
public void should_add_short_version_of_userememberedoptions_to_the_option_set()
187+
{
188+
optionSet.Contains("userememberedoptions").ShouldBeTrue();
189+
}
190+
191+
[Fact]
192+
public void should_add_userememberedargs_to_the_option_set()
193+
{
194+
optionSet.Contains("use-remembered-args").ShouldBeTrue();
195+
}
196+
197+
[Fact]
198+
public void should_add_userememberedarguments_to_the_option_set()
199+
{
200+
optionSet.Contains("use-remembered-arguments").ShouldBeTrue();
201+
}
202+
203+
[Fact]
204+
public void should_add_userememberedoptions_to_the_option_set()
205+
{
206+
optionSet.Contains("use-remembered-options").ShouldBeTrue();
207+
}
208+
209+
[Fact]
210+
public void should_add_short_version_of_ignorerememberedargs_to_the_option_set()
211+
{
212+
optionSet.Contains("ignorerememberedargs").ShouldBeTrue();
213+
}
214+
215+
[Fact]
216+
public void should_add_short_version_of_ignorerememberedarguments_to_the_option_set()
217+
{
218+
optionSet.Contains("ignorerememberedarguments").ShouldBeTrue();
219+
}
220+
221+
[Fact]
222+
public void should_add_short_version_of_ignorerememberedoptions_to_the_option_set()
223+
{
224+
optionSet.Contains("ignorerememberedoptions").ShouldBeTrue();
225+
}
226+
227+
[Fact]
228+
public void should_add_ignorerememberedargs_to_the_option_set()
229+
{
230+
optionSet.Contains("ignore-remembered-args").ShouldBeTrue();
231+
}
232+
233+
[Fact]
234+
public void should_add_ignorerememberedarguments_to_the_option_set()
235+
{
236+
optionSet.Contains("ignore-remembered-arguments").ShouldBeTrue();
237+
}
238+
239+
[Fact]
240+
public void should_add_ignorerememberedoptions_to_the_option_set()
241+
{
242+
optionSet.Contains("ignore-remembered-options").ShouldBeTrue();
243+
}
172244
}
173245

174246
public class when_handling_additional_argument_parsing : ChocolateyUninstallCommandSpecsBase

0 commit comments

Comments
 (0)