[lang-ref] ( get_current_directory ) ( powershell )
It 'should get current directory' {
# Get-Location
$orgDir = Get-Location
Set-Location -Path 'C:\Users'
Get-Location | Should -Be 'C:\Users'
Set-Location -Path $orgDir
}
It 'should get current directory' {
# Get-Location
$orgDir = Get-Location
Set-Location -Path 'C:\Users'
Get-Location | Should -Be 'C:\Users'
Set-Location -Path $orgDir
}