From 2782b73e3734f689e15ef49f2094ea7ef5d290cf Mon Sep 17 00:00:00 2001 From: xtqqczze <45661989+xtqqczze@users.noreply.github.com> Date: Mon, 13 Jan 2020 19:35:06 +0000 Subject: [PATCH] Correct case of $PSCulture special variable --- test/powershell/Language/Scripting/I18n.Tests.ps1 | 2 +- .../Modules/Microsoft.PowerShell.Utility/Get-Culture.Tests.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/powershell/Language/Scripting/I18n.Tests.ps1 b/test/powershell/Language/Scripting/I18n.Tests.ps1 index 5dbac9cb4d..26fa2aeb7d 100644 --- a/test/powershell/Language/Scripting/I18n.Tests.ps1 +++ b/test/powershell/Language/Scripting/I18n.Tests.ps1 @@ -120,7 +120,7 @@ Describe 'Testing of script internationalization' -Tags "CI" { import-localizedData mydata -filename if - if ($psculture -eq 'en-US') + if ($PSCulture -eq 'en-US') { $mydata.string1 | Should -BeExactly 'string1 for en-US in if' $mydata.string2 | Should -BeExactly 'string2 for en-US in if' diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Culture.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Culture.Tests.ps1 index 7ea74c7ac0..4733963f88 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Culture.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Culture.Tests.ps1 @@ -14,7 +14,7 @@ Describe "Get-Culture" -Tags "CI" { It "Should have (Get-Culture).Name variable be equivalent to `$PSCulture" { - (Get-Culture).Name | Should -BeExactly $PsCulture + (Get-Culture).Name | Should -BeExactly $PSCulture } It "Should return the specified culture with '-Name' parameter" {