mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
mark the add-type tests as pending for $IsCore
This commit is contained in:
1 parent
f0233a8d20
commit
ac8238075d
1 file changed
+3
-3
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user