diff --git a/test/powershell/Modules/Microsoft.PowerShell.Management/FileSystem.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Management/FileSystem.Tests.ps1 index 94516097e65..35616108f49 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Management/FileSystem.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Management/FileSystem.Tests.ps1 @@ -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