2018-02-13 18:23:53 +01:00
|
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
// Licensed under the MIT License.
|
2015-06-12 00:15:45 +02:00
|
|
|
using Xunit;
|
|
|
|
using System;
|
|
|
|
using System.Management.Automation;
|
|
|
|
|
2018-01-03 21:43:28 +01:00
|
|
|
namespace PSTests.Parallel
|
2015-06-12 00:15:45 +02:00
|
|
|
{
|
|
|
|
public static class SecuritySupportTests
|
|
|
|
{
|
2015-07-21 00:31:03 +02:00
|
|
|
[Fact]
|
2015-06-12 00:15:45 +02:00
|
|
|
public static void TestScanContent()
|
|
|
|
{
|
2017-11-30 23:44:41 +01:00
|
|
|
Assert.Equal(AmsiUtils.AmsiNativeMethods.AMSI_RESULT.AMSI_RESULT_NOT_DETECTED, AmsiUtils.ScanContent("", ""));
|
2015-06-12 00:15:45 +02:00
|
|
|
}
|
|
|
|
|
2015-07-21 00:31:03 +02:00
|
|
|
[Fact]
|
2015-06-12 00:15:45 +02:00
|
|
|
public static void TestCloseSession()
|
|
|
|
{
|
|
|
|
AmsiUtils.CloseSession();
|
|
|
|
}
|
|
|
|
|
2015-07-21 00:31:03 +02:00
|
|
|
[Fact]
|
2015-06-12 00:15:45 +02:00
|
|
|
public static void TestUninitialize()
|
|
|
|
{
|
|
|
|
AmsiUtils.Uninitialize();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|