Skip to content

Commit

Permalink
chore: Fixed tests after uninstall command change
Browse files Browse the repository at this point in the history
  • Loading branch information
svrooij committed Dec 29, 2023
1 parent 8d5d39c commit 03703ad
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/WingetIntune.Tests/WingetHelper.Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ public void GetShowArgumentsForPackage_ReturnsCorrectString()
}

[Theory]
[InlineData(true, InstallerContext.System, "uninstall --id my-fake-id --source winget --force --silent --accept-package-agreements --accept-source-agreements --disable-interactivity --scope system")]
[InlineData(false, InstallerContext.System, "uninstall --id my-fake-id --source winget --silent --accept-package-agreements --accept-source-agreements --disable-interactivity --scope system")]
[InlineData(true, InstallerContext.User, "uninstall --id my-fake-id --source winget --force --silent --accept-package-agreements --accept-source-agreements --disable-interactivity --scope user")]
[InlineData(false, InstallerContext.User, "uninstall --id my-fake-id --source winget --silent --accept-package-agreements --accept-source-agreements --disable-interactivity --scope user")]
[InlineData(true, InstallerContext.Unknown, "uninstall --id my-fake-id --source winget --force --silent --accept-package-agreements --accept-source-agreements --disable-interactivity")]
[InlineData(false, InstallerContext.Unknown, "uninstall --id my-fake-id --source winget --silent --accept-package-agreements --accept-source-agreements --disable-interactivity")]
[InlineData(true, InstallerContext.System, "uninstall --id my-fake-id --source winget --force --silent --accept-source-agreements --disable-interactivity --scope system")]
[InlineData(false, InstallerContext.System, "uninstall --id my-fake-id --source winget --silent --accept-source-agreements --disable-interactivity --scope system")]
[InlineData(true, InstallerContext.User, "uninstall --id my-fake-id --source winget --force --silent --accept-source-agreements --disable-interactivity --scope user")]
[InlineData(false, InstallerContext.User, "uninstall --id my-fake-id --source winget --silent --accept-source-agreements --disable-interactivity --scope user")]
[InlineData(true, InstallerContext.Unknown, "uninstall --id my-fake-id --source winget --force --silent --accept-source-agreements --disable-interactivity")]
[InlineData(false, InstallerContext.Unknown, "uninstall --id my-fake-id --source winget --silent --accept-source-agreements --disable-interactivity")]
public void GetUninstallArgumentsForPackage_ReturnsCorrectString(bool force, InstallerContext installerContext, string expected)
{
var packageId = "my-fake-id";
Expand Down

0 comments on commit 03703ad

Please sign in to comment.