8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e38f0e7 commit 10a27b8Copy full SHA for 10a27b8
test/powershell/Modules/Microsoft.PowerShell.Management/FileSystem.Tests.ps1
@@ -84,6 +84,12 @@ Describe "Basic FileSystem Provider Tests" -Tags "CI" {
84
$dirContents.Count | Should Be 2
85
}
86
87
+ It "Verify Get-ChildItem can get the name of a specified item." {
88
+ $fileName = Get-ChildItem $testFile -Name
89
+ $fileInfo = Get-ChildItem $testFile
90
+ $fileName | Should BeExactly $fileInfo.Name
91
+ }
92
+
93
It "Set-Content to a file" {
94
$content = Set-Content -Value $testContent -Path $testFile -PassThru
95
$content | Should BeExactly $testContent
0 commit comments