@@ -103,19 +103,19 @@ public void CanRecurseDirectoryTree()
103
103
// suggest it should be find the '.ps1xml' files because we search for the pattern '*.ps1'
104
104
// ref https://docs.microsoft.com/en-us/dotnet/api/system.io.directory.getfiles?view=netcore-2.1#System_IO_Directory_GetFiles_System_String_System_String_System_IO_EnumerationOptions_
105
105
Assert . Equal ( 4 , fileList . Count ) ;
106
- Assert . Equal ( Path . Combine ( workspace . WorkspacePath , "nested" ) + "/ donotfind.ps1", fileList [ 0 ] ) ;
107
- Assert . Equal ( Path . Combine ( workspace . WorkspacePath , "nested" ) + "/ nestedmodule.psd1", fileList [ 1 ] ) ;
108
- Assert . Equal ( Path . Combine ( workspace . WorkspacePath , "nested" ) + "/ nestedmodule.psm1", fileList [ 2 ] ) ;
109
- Assert . Equal ( Path . Combine ( workspace . WorkspacePath , "rootfile.ps1" ) , fileList [ 3 ] ) ;
106
+ Assert . Equal ( Path . Combine ( workspace . WorkspacePath , "nested" , " donotfind.ps1") , fileList [ 0 ] ) ;
107
+ Assert . Equal ( Path . Combine ( workspace . WorkspacePath , "nested" , " nestedmodule.psd1") , fileList [ 1 ] ) ;
108
+ Assert . Equal ( Path . Combine ( workspace . WorkspacePath , "nested" , " nestedmodule.psm1") , fileList [ 2 ] ) ;
109
+ Assert . Equal ( Path . Combine ( workspace . WorkspacePath , "rootfile.ps1" ) , fileList [ 3 ] ) ;
110
110
}
111
111
else
112
112
{
113
113
Assert . Equal ( 5 , fileList . Count ) ;
114
- Assert . Equal ( Path . Combine ( workspace . WorkspacePath , "nested" ) + "/ donotfind.ps1", fileList [ 0 ] ) ;
115
- Assert . Equal ( Path . Combine ( workspace . WorkspacePath , "nested" ) + "/ nestedmodule.psd1", fileList [ 1 ] ) ;
116
- Assert . Equal ( Path . Combine ( workspace . WorkspacePath , "nested" ) + "/ nestedmodule.psm1", fileList [ 2 ] ) ;
117
- Assert . Equal ( Path . Combine ( workspace . WorkspacePath , "other" ) + "/ other.ps1xml", fileList [ 3 ] ) ;
118
- Assert . Equal ( Path . Combine ( workspace . WorkspacePath , "rootfile.ps1" ) , fileList [ 4 ] ) ;
114
+ Assert . Equal ( Path . Combine ( workspace . WorkspacePath , "nested" , " donotfind.ps1") , fileList [ 0 ] ) ;
115
+ Assert . Equal ( Path . Combine ( workspace . WorkspacePath , "nested" , " nestedmodule.psd1") , fileList [ 1 ] ) ;
116
+ Assert . Equal ( Path . Combine ( workspace . WorkspacePath , "nested" , " nestedmodule.psm1") , fileList [ 2 ] ) ;
117
+ Assert . Equal ( Path . Combine ( workspace . WorkspacePath , "other" , " other.ps1xml") , fileList [ 3 ] ) ;
118
+ Assert . Equal ( Path . Combine ( workspace . WorkspacePath , "rootfile.ps1" ) , fileList [ 4 ] ) ;
119
119
}
120
120
}
121
121
@@ -133,7 +133,7 @@ public void CanRecurseDirectoryTreeWithLimit()
133
133
) ;
134
134
135
135
Assert . Equal ( 1 , fileList . Count ) ;
136
- Assert . Equal ( Path . Combine ( workspace . WorkspacePath , "rootfile.ps1" ) , fileList [ 0 ] ) ;
136
+ Assert . Equal ( Path . Combine ( workspace . WorkspacePath , "rootfile.ps1" ) , fileList [ 0 ] ) ;
137
137
}
138
138
139
139
[ Fact ]
@@ -150,8 +150,8 @@ public void CanRecurseDirectoryTreeWithGlobs()
150
150
) ;
151
151
152
152
Assert . Equal ( 2 , fileList . Count ) ;
153
- Assert . Equal ( Path . Combine ( workspace . WorkspacePath , "nested" ) + "/ nestedmodule.psd1", fileList [ 0 ] ) ;
154
- Assert . Equal ( Path . Combine ( workspace . WorkspacePath , "rootfile.ps1" ) , fileList [ 1 ] ) ;
153
+ Assert . Equal ( Path . Combine ( workspace . WorkspacePath , "nested" , " nestedmodule.psd1") , fileList [ 0 ] ) ;
154
+ Assert . Equal ( Path . Combine ( workspace . WorkspacePath , "rootfile.ps1" ) , fileList [ 1 ] ) ;
155
155
}
156
156
157
157
[ Fact ]
0 commit comments