Functions/Assertions/BeLikeExactly.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14

function PesterBeLikeExactly($value, $expectedMatch) {
    return ($value -clike $expectedMatch)
}

function PesterBeLikeExactlyFailureMessage($value, $expectedMatch) {
    return "Expected: {$value} to be exactly like the wildcard {$expectedMatch}"
}

function NotPesterBeLikeExactlyFailureMessage($value, $expectedMatch) {
    return "Expected: ${value} to not be exactly like the wildcard ${expectedMatch}"
}