Functions/Assertions/BeGreaterThan.ps1

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

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

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