2016-07-25 14:01:41 -07:00
|
|
|
Describe "Get-Culture DRT Unit Tests" -Tags "CI" {
|
2016-04-20 01:28:43 -07:00
|
|
|
It "Should works proper with get-culture" {
|
|
|
|
|
$results = get-Culture
|
2016-04-21 23:46:21 -07:00
|
|
|
$results -is "System.Globalization.CultureInfo" | Should be $true
|
2016-04-20 01:28:43 -07:00
|
|
|
$results[0].Name | Should Be $PSCulture
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-07-25 14:01:41 -07:00
|
|
|
Describe "Get-Culture" -Tags "CI" {
|
2016-03-04 14:52:27 -08:00
|
|
|
|
2015-11-06 07:19:04 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|