From ac8238075d5af5be06f0467a61599bb6ba411baa Mon Sep 17 00:00:00 2001 From: James Truher Date: Wed, 27 Jul 2016 12:14:08 -0700 Subject: [PATCH] mark the add-type tests as pending for $IsCore --- .../Modules/Microsoft.PowerShell.Utility/Add-Type.Tests.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Add-Type.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Add-Type.Tests.ps1 index 5b4b7d7d6..0a571d27e 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Add-Type.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Add-Type.Tests.ps1 @@ -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 } }