| Current Path : C:/Program Files/WindowsPowerShell/Modules/Pester/3.4.0/Functions/Assertions/ |
| Current File : C:/Program Files/WindowsPowerShell/Modules/Pester/3.4.0/Functions/Assertions/Contain.ps1 |
function PesterContain($file, $contentExpecation) {
return ((& $SafeCommands['Get-Content'] -Encoding UTF8 $file) -match $contentExpecation)
}
function PesterContainFailureMessage($file, $contentExpecation) {
return "Expected: file ${file} to contain {$contentExpecation}"
}
function NotPesterContainFailureMessage($file, $contentExpecation) {
return "Expected: file {$file} to not contain ${contentExpecation} but it did"
}