mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Add unit test for PSEnumerableBinder.IsComObject()
This commit is contained in:
@@ -17,6 +17,8 @@ namespace PSTests
|
||||
|
||||
PSTypeExtensionsTests.TestIsComObject();
|
||||
|
||||
PSEnumerableBinderTests.TestIsComObject();
|
||||
|
||||
SecuritySupportTests.TestScanContent();
|
||||
SecuritySupportTests.TestCurrentDomain_ProcessExit();
|
||||
SecuritySupportTests.TestCloseSession();
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
using Xunit;
|
||||
using System;
|
||||
using System.Management.Automation.Language;
|
||||
|
||||
namespace PSTests
|
||||
{
|
||||
public static class PSEnumerableBinderTests
|
||||
{
|
||||
public static void TestIsComObject()
|
||||
{
|
||||
// It just needs an arbitrary object
|
||||
Assert.False(PSEnumerableBinder.IsComObject(42));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user