Contain exactly performs a case-sensitive comparison against the content of a text file:
'hello world' | Out-File 'file.txt' 'file.txt' | Should -FileContentMatchExactly 'world'
Contain exactly performs a case-sensitive comparison against the content of a text file:
'hello world' | Out-File 'file.txt' 'file.txt' | Should -FileContentMatchExactly 'world'