Functions/Assertions/Match.ps1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
function PesterMatch($value, $expectedMatch) { return ($value -match $expectedMatch) } function PesterMatchFailureMessage($value, $expectedMatch) { return "Expected: {$value} to match the expression {$expectedMatch}" } function NotPesterMatchFailureMessage($value, $expectedMatch) { return "Expected: ${value} to not match the expression ${expectedMatch}" } |