make sure that all tests are using the proper $IsCoreCLR variable instead of $IsCore

This commit is contained in:
James Truher
2016-07-27 12:32:17 -07:00
parent ac8238075d
commit fa1b386a08
2 changed files with 4 additions and 4 deletions
@@ -1,11 +1,11 @@
$guid = [Guid]::NewGuid().ToString().Replace("-","")
Describe "Add-Type" -Tags "CI" {
It "Should not throw given a simple class definition" -pending:($IsCore) {
It "Should not throw given a simple class definition" -pending:($IsCoreCLR) {
{ Add-Type -TypeDefinition "public static class foo { }" } | Should Not Throw
}
It "Can use System.Management.Automation.CmdletAttribute" -pending:($IsCore) {
It "Can use System.Management.Automation.CmdletAttribute" -pending:($IsCoreCLR) {
$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" -pending:($IsCore) {
It "Can load TPA assembly System.Runtime.Serialization.Primitives.dll" -pending:($IsCoreCLR) {
Add-Type -AssemblyName 'System.Runtime.Serialization.Primitives' -PassThru | Should Not Be $null
}
}
+1 -1
View File
@@ -37,7 +37,7 @@ Describe 'SDK Send Greeting Sample Tests' -Tag CI {
}
$importPesterCommand = 'Import-module Pester'
if($isCore)
if($IsCoreCLR)
{
$importPesterCommand = "Import-Module $(Join-Path -path $PSHOME -child '/Modules/Pester')"
}