Contain is used to perform a case-insensitive comparison against the content of a text file. Contain is not used to test the content of an array:
'hello world' | Out-File 'file.txt' 'file.txt' | Should -Contain 'World'
Contain is used to perform a case-insensitive comparison against the content of a text file. Contain is not used to test the content of an array:
'hello world' | Out-File 'file.txt' 'file.txt' | Should -Contain 'World'