From 48625af83eea1d716fa2439aed6411dffa601dae Mon Sep 17 00:00:00 2001 From: SteveL-MSFT Date: Fri, 28 Jul 2017 11:28:02 -0700 Subject: [PATCH] added check to device guard not returning array --- .../Microsoft.PowerShell.Management/Get-ComputerInfo.Tests.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/powershell/Modules/Microsoft.PowerShell.Management/Get-ComputerInfo.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Management/Get-ComputerInfo.Tests.ps1 index 7496160ced..b220e6b652 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Management/Get-ComputerInfo.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Management/Get-ComputerInfo.Tests.ps1 @@ -1389,6 +1389,7 @@ try { } else { + $observed.DeviceGuardRequiredSecurityProperties | Should Not BeNullOrEmpty [string]::Join(",", $observed.DeviceGuardRequiredSecurityProperties) | Should Be (Get-StringValuesFromValueMap -valuemap $requiredSecurityPropertiesValues -values $deviceGuard.RequiredSecurityProperties) } $observed.DeviceGuardAvailableSecurityProperties | Should Be $deviceGuard.AvailableSecurityProperties @@ -1399,6 +1400,7 @@ try { } else { + $observed.DeviceGuardSecurityServicesRunning | Should Not BeNullOrEmpty [string]::Join(",", $observed.DeviceGuardSecurityServicesRunning) | Should Be (Get-StringValuesFromValueMap -valuemap $securityServicesRunningValues -values $deviceGuard.SecurityServicesRunning) } $observed.DeviceGuardCodeIntegrityPolicyEnforcementStatus | Should Be $deviceGuard.CodeIntegrityPolicyEnforcementStatus