Files
PowerShell/test/powershell/Modules/Microsoft.PowerShell.Management/Get-Location.Tests.ps1
T
James Truher 9e225ccae2 changes tags for tests
Start using tags CI, Feature, Scenario
2016-07-27 12:06:51 -07:00

20 lines
421 B
PowerShell

Describe "Get-Location" -Tags "CI" {
$currentDirectory=[System.IO.Directory]::GetCurrentDirectory()
BeforeEach {
pushd $currentDirectory
}
AfterEach {
popd
}
It "Should list the output of the current working directory" {
(Get-Location).Path | Should Be $currentDirectory
}
It "Should do exactly the same thing as its alias" {
(pwd).Path | Should Be (Get-Location).Path
}
}