mark the add-type tests as pending for $IsCore
This commit is contained in:
parent
f0233a8d20
commit
ac8238075d
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue