From 3919ec837506f60d694272f15b896db90523e2c6 Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Mon, 6 Jul 2015 12:46:18 -0700 Subject: [PATCH] Add unit test for PSEnumerableBinder.IsComObject() --- src/ps_test/ps_test.cs | 2 ++ src/ps_test/test_Binders.cs | 15 +++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 src/ps_test/test_Binders.cs diff --git a/src/ps_test/ps_test.cs b/src/ps_test/ps_test.cs index e85f2bf9be..438f6170eb 100644 --- a/src/ps_test/ps_test.cs +++ b/src/ps_test/ps_test.cs @@ -17,6 +17,8 @@ namespace PSTests PSTypeExtensionsTests.TestIsComObject(); + PSEnumerableBinderTests.TestIsComObject(); + SecuritySupportTests.TestScanContent(); SecuritySupportTests.TestCurrentDomain_ProcessExit(); SecuritySupportTests.TestCloseSession(); diff --git a/src/ps_test/test_Binders.cs b/src/ps_test/test_Binders.cs new file mode 100644 index 0000000000..6123f19988 --- /dev/null +++ b/src/ps_test/test_Binders.cs @@ -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)); + } + } +}