PowerShell/test/powershell/Start-Sleep.Tests.ps1
Andrew Schwartzmeyer bbebf2f76a Reorganize tests
- 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`
2016-01-14 17:00:06 -08:00

15 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
}
}
}