24 lines
546 B
PowerShell
24 lines
546 B
PowerShell
Describe "Get-Culture DRT Unit Tests" -Tags DRT{
|
|
It "Should works proper with get-culture" {
|
|
$results = get-Culture
|
|
$results -is "System.Globalization.CultureInfo" | Should be $true
|
|
$results[0].Name | Should Be $PSCulture
|
|
}
|
|
}
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
|
}
|