MegaBites-AI/Windows-powershell
0372
1# Copyright (c) Microsoft Corporation.2# Licensed under the MIT License.3Describe "Get-Location" -Tags "CI" {4 $currentDirectory=[System.IO.Directory]::GetCurrentDirectory()5 BeforeEach {6 Push-Location $currentDirectory7 }8 9 AfterEach {10 Pop-Location11 }12 13 It "Should list the output of the current working directory" {14 15 (Get-Location).Path | Should -BeExactly $currentDirectory16 }17 18 It "Should do exactly the same thing as its alias" {19 (pwd).Path | Should -BeExactly (Get-Location).Path20 }21}22 