More pester fixing

This commit is contained in:
jhoneill
2020-11-23 08:56:55 +00:00
parent bb3923aabf
commit c685ad767c
10 changed files with 27812 additions and 647 deletions

View File

@@ -3,6 +3,9 @@
if ($null -eq $IsWindows) { $IsWindows = [environment]::OSVersion.Platform -like "win*" }
$WarningAction = "SilentlyContinue"
. "$PSScriptRoot\Samples\Samples.ps1"
if (-not (Get-command Get-Service -ErrorAction SilentlyContinue)) {
Function Get-Service {Import-Clixml $PSScriptRoot\Mockservices.xml}
}
if (Get-process -Name Excel, xlim -ErrorAction SilentlyContinue) {
It "Excel is open" {
$Warning = "You need to close Excel before running the tests."
@@ -443,7 +446,7 @@
$ws.ConditionalFormatting[1].Type | Should -Be "ContainsText"
#Add RGB Comparison
}
}
} -skip
Context "#Example 7 # Update-FirstObjectProperties works " {
BeforeAll {