From 96be23da1e44aad44a949b4634951cc51682c396 Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Tue, 1 Mar 2016 14:17:39 -0800 Subject: [PATCH] Add simple regression test for Add-Type --- test/powershell/Add-Type.Tests.ps1 | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 test/powershell/Add-Type.Tests.ps1 diff --git a/test/powershell/Add-Type.Tests.ps1 b/test/powershell/Add-Type.Tests.ps1 new file mode 100644 index 0000000000..14aec2ed2f --- /dev/null +++ b/test/powershell/Add-Type.Tests.ps1 @@ -0,0 +1,5 @@ +Describe "Add-Type" { + It "Should not throw given a simple class definition" { + { Add-Type -TypeDefinition "public static class foo { }" } | Should Not Throw + } +}