This commit is contained in:
ili101
2019-08-29 01:22:55 +03:00
parent ea8927394f
commit 15eb2130b5
8 changed files with 43 additions and 75 deletions

View File

@@ -1,6 +1,5 @@
$path = "TestDrive:\test.xlsx"
describe "Consistent passing of ranges." {
if ($notWindows) {Write-warning -message "Test uses get-service so only works on Windows" ; return}
Context "Conditional Formatting" {
Remove-Item -path $path -ErrorAction SilentlyContinue
$excel = Get-Service | Export-Excel -Path $path -WorksheetName Services -PassThru -AutoSize -DisplayPropertySet -AutoNameRange -Title "Services on $Env:COMPUTERNAME"