/
githubmirror
/
PowerShell
Обзор
Документация
Войти
/
githubmirror
/
PowerShell
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/powershell/Modules/Microsoft.PowerShell.Management/Pop-Location.Tests.ps1
30 строк
622 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 "Pop-Location" -Tags "CI" { $startDirectory = $(Get-Location).Path BeforeEach { Set-Location $startDirectory } It "Should be able to be called without error" { { Pop-Location } | Should -Not -Throw } It "Should not take a parameter" { { Pop-Location .. } | Should -Throw } It "Should be able pop multiple times" { Push-Location .. Push-Location .. Push-Location .. Pop-Location Pop-Location Pop-Location $(Get-Location).Path | Should -Be $startDirectory } Set-Location $startDirectory }