Merge pull request #965 from PowerShell/NewTimeSpanPesterTest
Add Unit Test for New-TimeSpan
This commit is contained in:
commit
3897635a8a
@ -1,3 +1,14 @@
|
||||
Describe "New-TimeSpan DRT Unit Tests" -Tags DRT{
|
||||
It "Should works proper with new-timespan"{
|
||||
$results = New-TimeSpan -Days 10 -Hours 10 -Minutes 10 -Seconds 10
|
||||
$results.GetType() | Should Be timespan
|
||||
$results.Days | Should Be 10
|
||||
$results.Hours | Should Be 10
|
||||
$results.Minutes | Should Be 10
|
||||
$results.Seconds | Should Be 10
|
||||
}
|
||||
}
|
||||
|
||||
Describe "New-TimeSpan" {
|
||||
It "Should be able to create a new timespan object" {
|
||||
New-Variable -Name testObject -Value $(New-TimeSpan)
|
||||
|
Loading…
Reference in New Issue
Block a user