Skip to content

Commit

Permalink
Re-enable Add-Type coreclr tests (PowerShell#2705)
Browse files Browse the repository at this point in the history
  • Loading branch information
vors authored and daxian-dbw committed Nov 17, 2016
1 parent 15ed125 commit ce26bca
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
$guid = [Guid]::NewGuid().ToString().Replace("-","")

Describe "Add-Type" -Tags "CI" {
It "Should not throw given a simple class definition" -pending:($IsCoreCLR) {
It "Should not throw given a simple class definition" {
{ Add-Type -TypeDefinition "public static class foo { }" } | Should Not Throw
}

It "Can use System.Management.Automation.CmdletAttribute" -pending:($IsCoreCLR) {
It "Can use System.Management.Automation.CmdletAttribute" {
$code = @"
[System.Management.Automation.Cmdlet("Get", "Thing", ConfirmImpact = System.Management.Automation.ConfirmImpact.High, SupportsPaging = true)]
public class AttributeTest$guid {}
"@
Add-Type -TypeDefinition $code -PassThru | Should Not Be $null
}

It "Can load TPA assembly System.Runtime.Serialization.Primitives.dll" -pending:($IsCoreCLR) {
It "Can load TPA assembly System.Runtime.Serialization.Primitives.dll" {
Add-Type -AssemblyName 'System.Runtime.Serialization.Primitives' -PassThru | Should Not Be $null
}
}

0 comments on commit ce26bca

Please sign in to comment.