Increase code coverage of Get-ChildItem on file system. (#4342)

* Increase code coverage of Get-ChildItem on file system.
This commit is contained in:
jeffbi 2017-08-01 13:16:30 -07:00 committed by Aditya Patwardhan
parent e38f0e7149
commit 10a27b891a

View File

@ -84,6 +84,12 @@ Describe "Basic FileSystem Provider Tests" -Tags "CI" {
$dirContents.Count | Should Be 2
}
It "Verify Get-ChildItem can get the name of a specified item." {
$fileName = Get-ChildItem $testFile -Name
$fileInfo = Get-ChildItem $testFile
$fileName | Should BeExactly $fileInfo.Name
}
It "Set-Content to a file" {
$content = Set-Content -Value $testContent -Path $testFile -PassThru
$content | Should BeExactly $testContent