forked from PowerShell/PowerShell
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-enable Add-Type coreclr tests (PowerShell#2705)
- Loading branch information
1 parent
15ed125
commit ce26bca
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
6 changes: 3 additions & 3 deletions
6
test/powershell/Modules/Microsoft.PowerShell.Utility/Add-Type.Tests.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} |