/
githubmirror
/
PowerShell
Обзор
Документация
Войти
/
githubmirror
/
PowerShell
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/powershell/Modules/Microsoft.PowerShell.Management/Unimplemented-Cmdlet.Tests.ps1
27 строк
652 B
Steve Lee
Update copyright notice to latest guidance (#12190)
24 мар 2020, 21:08
Не верифицирован
24 мар 2020, 21:08
b7cb335
Код
Авторство
О чём код?
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. Describe "Unimplemented Management Cmdlet Tests" -Tags "CI" { $Commands = @( "Get-Service", "Stop-Service", "Start-Service", "Suspend-Service", "Resume-Service", "Restart-Service", "Set-Service", "New-Service", "Rename-Computer", "Get-ComputerInfo", "Set-TimeZone" ) foreach ($Command in $Commands) { It "$Command should only be available on Windows" { [bool](Get-Command $Command -ErrorAction SilentlyContinue) | Should -Be $IsWindows } } }