PowerShell/test/powershell/Get-Location.Tests.ps1

18 lines
322 B
PowerShell
Raw Normal View History

Describe "Get-Location" {
2015-07-15 19:15:39 +02:00
BeforeEach {
pushd $env:HOME
2015-07-15 19:15:39 +02:00
}
AfterEach {
popd
}
2015-07-15 19:15:39 +02:00
It "Should list the output of the current working directory" {
(Get-Location).Path | Should Be $env:HOME
2015-07-15 19:15:39 +02:00
}
It "Should do exactly the same thing as its alias" {
(pwd).Path | Should Be (Get-Location).Path
2015-07-15 19:15:39 +02:00
}
2015-07-24 19:38:51 +02:00
}