Windows-powershell / PowerShell-master /test /powershell /Modules /Microsoft.PowerShell.Management /Clear-Item.Tests.ps1
Download PowerShell-master/test/powershell/Modules/Microsoft.PowerShell.Management/Clear-Item.Tests.ps1 from MegaBites-AI/Windows-powershell: direct link, hf CLI and curl.
- Browser
- Download file 495 Bytes
-
https://huggingface.co/datasets/MegaBites-AI/Windows-powershell/resolve/main/PowerShell-master/test/powershell/Modules/Microsoft.PowerShell.Management/Clear-Item.Tests.ps1
- Command line
-
hf download hf://datasets/MegaBites-AI/Windows-powershell/PowerShell-master/test/powershell/Modules/Microsoft.PowerShell.Management/Clear-Item.Tests.ps1
-
curl -L -o Clear-Item.Tests.ps1 https://huggingface.co/datasets/MegaBites-AI/Windows-powershell/resolve/main/PowerShell-master/test/powershell/Modules/Microsoft.PowerShell.Management/Clear-Item.Tests.ps1
495 Bytes
| # Copyright (c) Microsoft Corporation. | |
| # Licensed under the MIT License. | |
| Describe "Clear-Item tests" -Tag "CI" { | |
| BeforeAll { | |
| ${myClearItemVariableTest} = "Value is here" | |
| } | |
| It "Clear-Item can clear an item" { | |
| $myClearItemVariableTest | Should -BeExactly "Value is here" | |
| Clear-Item -Path variable:myClearItemVariableTest | |
| Test-Path -Path variable:myClearItemVariableTest | Should -BeTrue | |
| $myClearItemVariableTest | Should -BeNullOrEmpty | |
| } | |
| } | |