Use -Skip:$IsWindows

Uses the $IsWindows etc. booleans from the Microsoft.PowerShell.Platform
module instead of sourcing Test-Common repeatedly.
This commit is contained in:
Andrew Schwartzmeyer committed 2016-03-04 14:39:18 -08:00
1 parent de6a452f63
commit 615eca6fd5
7 files changed
+9 -49

No files matched your search

+1 -1
View File
@@ -1,5 +1,5 @@
Describe "Add-Type" {
It -Pending "Should not throw given a simple class definition" {
It "Should not throw given a simple class definition" -Skip:$IsWindows {
{ Add-Type -TypeDefinition "public static class foo { }" } | Should Not Throw
}
}