Windows-powershell / PowerShell-master /test /powershell /Modules /Microsoft.PowerShell.Utility /Get-Host.Tests.ps1
Download PowerShell-master/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Host.Tests.ps1 from MegaBites-AI/Windows-powershell: direct link, hf CLI and curl.
- Browser
- Download file 355 Bytes
-
https://huggingface.co/datasets/MegaBites-AI/Windows-powershell/resolve/main/PowerShell-master/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Host.Tests.ps1
- Command line
-
hf download hf://datasets/MegaBites-AI/Windows-powershell/PowerShell-master/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Host.Tests.ps1
-
curl -L -o Get-Host.Tests.ps1 https://huggingface.co/datasets/MegaBites-AI/Windows-powershell/resolve/main/PowerShell-master/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Host.Tests.ps1
355 Bytes
| # Copyright (c) Microsoft Corporation. | |
| # Licensed under the MIT License. | |
| Describe "Get-Host DRT Unit Tests" -Tags "CI" { | |
| It "Should works proper with get-host" { | |
| $results = Get-Host | |
| $results | Should -Be $Host | |
| $results.PSObject.TypeNames[0] | Should -BeExactly "System.Management.Automation.Internal.Host.InternalHost" | |
| } | |
| } | |