Windows-powershell / PowerShell-master /test /powershell /engine /ResourceValidation /UtilityResources.Tests.ps1
Download PowerShell-master/test/powershell/engine/ResourceValidation/UtilityResources.Tests.ps1 from MegaBites-AI/Windows-powershell: direct link, hf CLI and curl.
- Browser
- Download file 757 Bytes
-
https://huggingface.co/datasets/MegaBites-AI/Windows-powershell/resolve/main/PowerShell-master/test/powershell/engine/ResourceValidation/UtilityResources.Tests.ps1
- Command line
-
hf download hf://datasets/MegaBites-AI/Windows-powershell/PowerShell-master/test/powershell/engine/ResourceValidation/UtilityResources.Tests.ps1
-
curl -L -o UtilityResources.Tests.ps1 https://huggingface.co/datasets/MegaBites-AI/Windows-powershell/resolve/main/PowerShell-master/test/powershell/engine/ResourceValidation/UtilityResources.Tests.ps1
757 Bytes
| # Copyright (c) Microsoft Corporation. | |
| # Licensed under the MIT License. | |
| . "$PSScriptRoot/TestRunner.ps1" | |
| $AssemblyName = "Microsoft.PowerShell.Commands.Utility" | |
| # excluded resources, taken from the 'EmbeddedResource Remove' | |
| # entries in the csproj for the assembly | |
| $excludeList = "CoreMshSnapinResources.resx", | |
| "ErrorPackageRemoting.resx", | |
| "FormatAndOut_out_gridview.resx", | |
| "UtilityMshSnapinResources.resx", | |
| "OutPrinterDisplayStrings.resx", | |
| "UpdateListStrings.resx", | |
| "ConvertFromStringResources.resx", | |
| "ConvertStringResources.resx", | |
| "FlashExtractStrings.resx", | |
| "ImmutableStrings.resx" | |
| Import-Module Microsoft.Powershell.Utility | |
| # run the tests | |
| Test-ResourceStrings -AssemblyName $AssemblyName -ExcludeList $excludeList | |