mirror of
https://github.com/PowerShell/PowerShell.git
synced 2024-11-24 02:04:07 +08:00
Increase code coverage of Get-ChildItem on file system. (#4342)
* Increase code coverage of Get-ChildItem on file system.
This commit is contained in:
parent
e38f0e7149
commit
10a27b891a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user