Add unit test for PSEnumerableBinder.IsComObject()
This commit is contained in:
parent
c58871711c
commit
3919ec8375
@ -17,6 +17,8 @@ namespace PSTests
|
||||
|
||||
PSTypeExtensionsTests.TestIsComObject();
|
||||
|
||||
PSEnumerableBinderTests.TestIsComObject();
|
||||
|
||||
SecuritySupportTests.TestScanContent();
|
||||
SecuritySupportTests.TestCurrentDomain_ProcessExit();
|
||||
SecuritySupportTests.TestCloseSession();
|
||||
|
15
src/ps_test/test_Binders.cs
Normal file
15
src/ps_test/test_Binders.cs
Normal file
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user