Add Unit Test for New-TimeSpan

This commit is contained in:
Dicey Dai committed 2016-05-08 21:45:04 -07:00
1 parent 8718d9f6a8
commit e7092ba393
1 file changed
+11
+11
View File
@@ -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)