Functions/Assertions/MatchExactly.ps1
function PesterMatchExactly($value, $expectedMatch) { return ($value -cmatch $expectedMatch) } function PesterMatchExactlyFailureMessage($value, $expectedMatch) { return "Expected: {$value} to exactly match the expression {$expectedMatch}" } function NotPesterMatchExactlyFailureMessage($value, $expectedMatch) { return "Expected: ${value} to not match the expression ${expectedMatch} exactly" } |