Windows-powershell / PowerShell-master /test /powershell /Modules /Microsoft.PowerShell.Management /Get-Location.Tests.ps1
Download PowerShell-master/test/powershell/Modules/Microsoft.PowerShell.Management/Get-Location.Tests.ps1 from MegaBites-AI/Windows-powershell: direct link, hf CLI and curl.
- Browser
- Download file 522 Bytes
-
https://huggingface.co/datasets/MegaBites-AI/Windows-powershell/resolve/main/PowerShell-master/test/powershell/Modules/Microsoft.PowerShell.Management/Get-Location.Tests.ps1
- Command line
-
hf download hf://datasets/MegaBites-AI/Windows-powershell/PowerShell-master/test/powershell/Modules/Microsoft.PowerShell.Management/Get-Location.Tests.ps1
-
curl -L -o Get-Location.Tests.ps1 https://huggingface.co/datasets/MegaBites-AI/Windows-powershell/resolve/main/PowerShell-master/test/powershell/Modules/Microsoft.PowerShell.Management/Get-Location.Tests.ps1
522 Bytes
| # Copyright (c) Microsoft Corporation. | |
| # Licensed under the MIT License. | |
| Describe "Get-Location" -Tags "CI" { | |
| $currentDirectory=[System.IO.Directory]::GetCurrentDirectory() | |
| BeforeEach { | |
| Push-Location $currentDirectory | |
| } | |
| AfterEach { | |
| Pop-Location | |
| } | |
| It "Should list the output of the current working directory" { | |
| (Get-Location).Path | Should -BeExactly $currentDirectory | |
| } | |
| It "Should do exactly the same thing as its alias" { | |
| (pwd).Path | Should -BeExactly (Get-Location).Path | |
| } | |
| } | |