mirror of
https://github.com/PowerShell/PowerShell.git
synced 2024-11-27 11:56:14 +08:00
28 lines
595 B
C#
28 lines
595 B
C#
using Xunit;
|
|
using System;
|
|
using System.Management.Automation;
|
|
|
|
namespace PSTests.Parallel
|
|
{
|
|
public static class SecuritySupportTests
|
|
{
|
|
[Fact]
|
|
public static void TestScanContent()
|
|
{
|
|
Assert.Equal(AmsiUtils.AmsiNativeMethods.AMSI_RESULT.AMSI_RESULT_NOT_DETECTED, AmsiUtils.ScanContent("", ""));
|
|
}
|
|
|
|
[Fact]
|
|
public static void TestCloseSession()
|
|
{
|
|
AmsiUtils.CloseSession();
|
|
}
|
|
|
|
[Fact]
|
|
public static void TestUninitialize()
|
|
{
|
|
AmsiUtils.Uninitialize();
|
|
}
|
|
}
|
|
}
|