mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Merge pull request 262 from dev/host-culture-tests into develop
Merge dev/host-culture-tests to develop
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
Describe "Get-Culture" {
|
||||
|
||||
It "Should return a type of CultureInfo for Get-Culture cmdlet" {
|
||||
|
||||
(Get-Culture).GetType() | Should Be CultureInfo
|
||||
|
||||
}
|
||||
|
||||
It "Should have $ culture variable be equivalent to (Get-Culture).Name" {
|
||||
|
||||
(Get-Culture).Name | Should Be $PsCulture
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
Describe "Get-Host" {
|
||||
It "Should return a type of InternalHost for Get-Host cmdlet" {
|
||||
|
||||
(Get-Host).GetType().Name | Should Be InternalHost
|
||||
|
||||
}
|
||||
|
||||
It "Should have $ host variable be equivalent to Get-Host object" {
|
||||
|
||||
Get-Host | Should Be $host
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
Describe "Get-UICulture" {
|
||||
It "Should return a type of CultureInfo as the name of the type" {
|
||||
|
||||
(Get-UICulture).GetType().Name | Should Be CultureInfo
|
||||
|
||||
}
|
||||
|
||||
It "Should have $ PsUICulture variable be equivalent to Get-UICulture object" {
|
||||
|
||||
(Get-UICulture).Name | Should Be $PsUICulture
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user