Files
PowerShell/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Culture.Tests.ps1
T

24 lines
559 B
PowerShell
Raw Normal View History

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" {
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
}
}