From fa1b386a08b8b7b91dbc91cb64dba5a062ad9ab6 Mon Sep 17 00:00:00 2001 From: James Truher Date: Wed, 27 Jul 2016 12:32:17 -0700 Subject: [PATCH] make sure that all tests are using the proper $IsCoreCLR variable instead of $IsCore --- .../Modules/Microsoft.PowerShell.Utility/Add-Type.Tests.ps1 | 6 +++--- test/powershell/SDK/CmdletExample.Tests.ps1 | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Add-Type.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Add-Type.Tests.ps1 index 0a571d27e..ee0f2c951 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Add-Type.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Add-Type.Tests.ps1 @@ -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 } } diff --git a/test/powershell/SDK/CmdletExample.Tests.ps1 b/test/powershell/SDK/CmdletExample.Tests.ps1 index 4b41f314b..222ed6c56 100644 --- a/test/powershell/SDK/CmdletExample.Tests.ps1 +++ b/test/powershell/SDK/CmdletExample.Tests.ps1 @@ -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')" }