Fix the issue of CR for Get-Random

This commit is contained in:
TingLiu6 authored and Andrew Schwartzmeyer committed 2016-05-05 14:13:55 -07:00
1 parent 5d91a8164f
commit 01af13ce37
1 file changed
+7 -3
+7 -3
View File
@@ -241,9 +241,13 @@ Describe "Get-Random DRT Unit Tests" -Tags DRT{
}
It "Tests for setting the seed" {
$result1 = get-random -SetSeed 123; get-random;
$result2 = get-random -SetSeed 123; get-random;
$result1 | Should Be $result2
$result1 = (get-random -SetSeed 123), (get-random)
$result2 = (get-random -SetSeed 123), (get-random)
$result1.Length | Should Be $result2.Length
for($i = 0;$i -lt $result1.Length;$i++)
{
$result1[$i] | Should Be $result2[$i]
}
}
}