Functions/Assertions/Exist.Tests.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
Set-StrictMode -Version Latest

InModuleScope Pester {
    Describe "PesterExist" {
        It "returns true for paths that exist" {
            Test-PositiveAssertion (PesterExist $TestDrive)
        }

        It "returns false for paths do not exist" {
            Test-NegativeAssertion (PesterExist "$TestDrive\nonexistant")
        }
    }
}