bbebf2f76a
- Pester source code moved to `test/Pester`, deleted `ext-src`. - Pester tests (.ps1 files) moved to `test/powershell` - xUnit tests (.cs files) moved to `test/csharp` - Third-party script test moved to `test/shebang`
14 lines
413 B
PowerShell
14 lines
413 B
PowerShell
Describe "Start-Sleep" {
|
|
|
|
Context "Validate Start-Sleep works properly" {
|
|
It "Should only sleep for at least 3 seconds"{
|
|
$result = Measure-Command { Start-Sleep -s 3 }
|
|
$result.Seconds | Should BeGreaterThan 2
|
|
}
|
|
|
|
It "Should sleep for at least 3 seconds using the alias" {
|
|
$result = Measure-Command { sleep -s 3 }
|
|
$result.Seconds | Should BeGreaterThan 2
|
|
}
|
|
}
|
|
}
|