Clean up temp files in pester scripts

This commit is contained in:
George Fleming authored and Andrew Schwartzmeyer committed 2016-02-08 10:59:02 -08:00
1 parent 363c0ccfd1
commit cb6d7011d9
4 files changed
+14 -1

No files matched your search

+4
View File
@@ -104,6 +104,10 @@
New-Item $testInputFile -Itemtype "file" -Force -Value "This is a text string, and another string${nl}This is the second line${nl}This is the third line${nl}This is the fourth line${nl}No matches"
}
AfterEach {
Remove-Item $testInputFile -Force
}
It "Should return an object when a match is found is the file on only one line" {
(Select-String $testInputFile -Pattern "string").GetType().BaseType | Should be System.Object
}