Added pester tests for Get-Culture, Get-Host, Get-UICulture
This commit is contained in:
parent
2569e481fb
commit
1e8de5b568
3 changed files with 42 additions and 0 deletions
16
src/pester-tests/Get-Culture.Tests.ps1
Normal file
16
src/pester-tests/Get-Culture.Tests.ps1
Normal file
|
@ -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
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
13
src/pester-tests/Get-Host.Tests.ps1
Normal file
13
src/pester-tests/Get-Host.Tests.ps1
Normal file
|
@ -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
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
13
src/pester-tests/Get-UICulture.Tests.ps1
Normal file
13
src/pester-tests/Get-UICulture.Tests.ps1
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
Describe "Get-UICulture" {
|
||||||
|
It "Should return a type of VistaCultureInfo as the name of the type" {
|
||||||
|
|
||||||
|
(Get-UICulture).GetType().Name | Should Be VistaCultureInfo
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
It "Should have $ PsUICulture variable be equivalent to Get-UICulture object" {
|
||||||
|
|
||||||
|
(Get-UICulture).Name | Should Be $PsUICulture
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue