Files
PowerShell/test/powershell/Add-Type.Tests.ps1
T
Andrew Schwartzmeyer 615eca6fd5 Use -Skip:$IsWindows
Uses the $IsWindows etc. booleans from the Microsoft.PowerShell.Platform
module instead of sourcing Test-Common repeatedly.
2016-03-04 14:39:18 -08:00

6 lines
193 B
PowerShell

Describe "Add-Type" {
It "Should not throw given a simple class definition" -Skip:$IsWindows {
{ Add-Type -TypeDefinition "public static class foo { }" } | Should Not Throw
}
}