Team Ai
Datasetpublic

MegaBites-AI/Windows-powershell

sourceHugging Facemitupdated 6mo agoView on Hugging Face
0likes372downloads
test_SecuritySupport.cs26 linesDownload Raw Back to csharp
1// Copyright (c) Microsoft Corporation.2// Licensed under the MIT License.3 4using System;5using System.Management.Automation;6using Xunit;7 8namespace PSTests.Parallel9{10    public static class SecuritySupportTests11    {12        [Fact]13        public static void TestScanContent()14        {15            try16            {17                Assert.Equal(AmsiUtils.AmsiNativeMethods.AMSI_RESULT.AMSI_RESULT_NOT_DETECTED, AmsiUtils.ScanContent(string.Empty, string.Empty));18            }19            finally20            {21                AmsiUtils.Uninitialize();22            }23        }24    }25}26