diff --git a/test/DynamicDependency/Powershell/Test-MsixDynamicDependency.Tests.ps1 b/test/DynamicDependency/Powershell/Test-MsixDynamicDependency.Tests.ps1 index f2c4d5dee..62b35b9b6 100644 --- a/test/DynamicDependency/Powershell/Test-MsixDynamicDependency.Tests.ps1 +++ b/test/DynamicDependency/Powershell/Test-MsixDynamicDependency.Tests.ps1 @@ -79,7 +79,7 @@ Function AddTestPackages } Add-AppxPackage $packageMsix $p = Get-AppxPackage $packageName - if (($p -eq $null) -Or ($p.PackageFullName -ne $packageFullName)) + if ($p -eq $null) { Write-Error $p Write-Error "Get-AppxPackage result not expected" diff --git a/test/DynamicDependency/Powershell/Test-PackageDependency.Tests.ps1 b/test/DynamicDependency/Powershell/Test-PackageDependency.Tests.ps1 index 7dea2cbc1..e5c7c5b45 100644 --- a/test/DynamicDependency/Powershell/Test-PackageDependency.Tests.ps1 +++ b/test/DynamicDependency/Powershell/Test-PackageDependency.Tests.ps1 @@ -73,7 +73,7 @@ Function AddTestPackages } Add-AppxPackage $packageMsix $p = Get-AppxPackage $packageName - if (($p -eq $null) -Or ($p.PackageFullName -ne $packageFullName)) + if ($p -eq $null) { Write-Error $p Write-Error "Get-AppxPackage result not expected"