Download PowerShell-master/test/xUnit/csharp/test_SecuritySupport.cs from MegaBites-AI/Windows-powershell: direct link, hf CLI and curl.
- Browser
- Download file 589 Bytes
-
https://huggingface.co/datasets/MegaBites-AI/Windows-powershell/resolve/main/PowerShell-master/test/xUnit/csharp/test_SecuritySupport.cs
- Command line
-
hf download hf://datasets/MegaBites-AI/Windows-powershell/PowerShell-master/test/xUnit/csharp/test_SecuritySupport.cs
-
curl -L -o test_SecuritySupport.cs https://huggingface.co/datasets/MegaBites-AI/Windows-powershell/resolve/main/PowerShell-master/test/xUnit/csharp/test_SecuritySupport.cs
589 Bytes
| // Copyright (c) Microsoft Corporation. | |
| // Licensed under the MIT License. | |
| using System; | |
| using System.Management.Automation; | |
| using Xunit; | |
| namespace PSTests.Parallel | |
| { | |
| public static class SecuritySupportTests | |
| { | |
| [] | |
| public static void TestScanContent() | |
| { | |
| try | |
| { | |
| Assert.Equal(AmsiUtils.AmsiNativeMethods.AMSI_RESULT.AMSI_RESULT_NOT_DETECTED, AmsiUtils.ScanContent(string.Empty, string.Empty)); | |
| } | |
| finally | |
| { | |
| AmsiUtils.Uninitialize(); | |
| } | |
| } | |
| } | |
| } | |