mark the add-type tests as pending for $IsCore

This commit is contained in:
James Truher 2016-07-27 12:14:08 -07:00
parent f0233a8d20
commit ac8238075d

View file

@ -1,11 +1,11 @@
$guid = [Guid]::NewGuid().ToString().Replace("-","")
Describe "Add-Type" -Tags "CI" {
It "Should not throw given a simple class definition" {
It "Should not throw given a simple class definition" -pending:($IsCore) {
{ Add-Type -TypeDefinition "public static class foo { }" } | Should Not Throw
}
It "Can use System.Management.Automation.CmdletAttribute" {
It "Can use System.Management.Automation.CmdletAttribute" -pending:($IsCore) {
$code = @"
[System.Management.Automation.Cmdlet("Get", "Thing", ConfirmImpact = System.Management.Automation.ConfirmImpact.High, SupportsPaging = true)]
public class AttributeTest$guid {}
@ -13,7 +13,7 @@ public class AttributeTest$guid {}
Add-Type -TypeDefinition $code -PassThru | Should Not Be $null
}
It "Can load TPA assembly System.Runtime.Serialization.Primitives.dll" {
It "Can load TPA assembly System.Runtime.Serialization.Primitives.dll" -pending:($IsCore) {
Add-Type -AssemblyName 'System.Runtime.Serialization.Primitives' -PassThru | Should Not Be $null
}
}