Functions/Assertions/Exist.ps1

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

function PesterExist($value) {
    Test-Path $value
}

function PesterExistFailureMessage($value) {
    return "Expected: {$value} to exist"
}

function NotPesterExistFailureMessage($value) {
    return "Expected: ${value} to not exist, but it was found"
}