2020-03-24 11:08:37 -07:00
|
|
|
// Copyright (c) Microsoft Corporation.
|
2018-02-13 09:23:53 -08:00
|
|
|
// Licensed under the MIT License.
|
2018-12-18 21:11:21 +05:00
|
|
|
|
2015-06-11 15:15:45 -07:00
|
|
|
using System;
|
|
|
|
|
using System.Management.Automation;
|
2018-12-18 21:11:21 +05:00
|
|
|
using Xunit;
|
2015-06-11 15:15:45 -07:00
|
|
|
|
2018-01-03 12:43:28 -08:00
|
|
|
namespace PSTests.Parallel
|
2015-06-11 15:15:45 -07:00
|
|
|
{
|
|
|
|
|
public static class SecuritySupportTests
|
|
|
|
|
{
|
2015-07-20 15:31:03 -07:00
|
|
|
[Fact]
|
2015-06-11 15:15:45 -07:00
|
|
|
public static void TestScanContent()
|
|
|
|
|
{
|
2019-10-16 09:55:41 -07:00
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
Assert.Equal(AmsiUtils.AmsiNativeMethods.AMSI_RESULT.AMSI_RESULT_NOT_DETECTED, AmsiUtils.ScanContent(string.Empty, string.Empty));
|
|
|
|
|
}
|
|
|
|
|
finally
|
|
|
|
|
{
|
|
|
|
|
AmsiUtils.Uninitialize();
|
|
|
|
|
}
|
2015-06-11 15:15:45 -07:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|