@@ -65,10 +65,16 @@ Describe 'Verify Path Processing for Wildcards Allowed Impl' {
65
65
Should Be @ (" $WorkspaceRoot \README.md" , " $WorkspaceRoot \PathProcessingWildcards.ps1" )
66
66
}
67
67
It ' Processes wildcard absolute path via -Path param' {
68
- Import-FileWildcard - Path $WorkspaceRoot \* .psd1 | Should Be " $WorkspaceRoot \SampleModule.psd1"
68
+ $files = Import-FileWildcard - Path $WorkspaceRoot \* .psd1
69
+ $files.Count | Should Be 2
70
+ $files [0 ] | Should Be " $WorkspaceRoot \PSScriptAnalyzerSettings.psd1"
71
+ $files [1 ] | Should Be " $WorkspaceRoot \SampleModule.psd1"
69
72
}
70
73
It ' Processes wildcard relative path via -Path param' {
71
- Import-FileWildcard - Path * .psd1 | Should Be " $WorkspaceRoot \SampleModule.psd1"
74
+ $files = Import-FileWildcard - Path * .psd1
75
+ $files.Count | Should Be 2
76
+ $files [0 ] | Should Be " $WorkspaceRoot \PSScriptAnalyzerSettings.psd1"
77
+ $files [1 ] | Should Be " $WorkspaceRoot \SampleModule.psd1"
72
78
}
73
79
It ' Processes relative path via -Path param' {
74
80
Import-FileWildcard - Path ..\examples\README.md | Should Be " $WorkspaceRoot \README.md"
@@ -79,7 +85,10 @@ Describe 'Verify Path Processing for Wildcards Allowed Impl' {
79
85
}
80
86
81
87
It ' DefaultParameterSet should be Path' {
82
- Import-FileWildcard * .psd1 | Should Be " $WorkspaceRoot \SampleModule.psd1"
88
+ $files = Import-FileWildcard * .psd1
89
+ $files.Count | Should Be 2
90
+ $files [0 ] | Should Be " $WorkspaceRoot \PSScriptAnalyzerSettings.psd1"
91
+ $files [1 ] | Should Be " $WorkspaceRoot \SampleModule.psd1"
83
92
}
84
93
85
94
It ' Should process absolute literal paths via -LiteralPath param' {
0 commit comments