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