Functions/Assertions/BeLessThan.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function PesterBeLessThan($value, $expected)
{
    return [bool]($value -lt $expected)
}

function PesterBeLessThanFailureMessage($value,$expected)
{
    return "Expected {$value} to be less than {$expected}"
}

function NotPesterBeLessThanFailureMessage($value,$expected)
{
    return "Expected {$value} to be greater than or equal to {$expected}"
}