Add unit test for PSEnumerableBinder.IsComObject()

This commit is contained in:
Andrew Schwartzmeyer 2015-07-06 12:46:18 -07:00
parent c58871711c
commit 3919ec8375
2 changed files with 17 additions and 0 deletions

View file

@ -17,6 +17,8 @@ namespace PSTests
PSTypeExtensionsTests.TestIsComObject();
PSEnumerableBinderTests.TestIsComObject();
SecuritySupportTests.TestScanContent();
SecuritySupportTests.TestCurrentDomain_ProcessExit();
SecuritySupportTests.TestCloseSession();

View 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));
}
}
}