33// </copyright>
44
55using System ;
6+ using System . Linq ;
67using System . Threading ;
78using System . Threading . Tasks ;
89
@@ -103,7 +104,7 @@ public async Task TwoEmptyDirectories()
103104 Assert . Same ( root , rootNode . Collection ) ;
104105 Assert . Equal ( 0 , rootNode . Documents . Count ) ;
105106 Assert . Collection (
106- rootNode . Nodes ,
107+ rootNode . Nodes . OrderBy ( n => n . Name ) ,
107108 node =>
108109 {
109110 Assert . NotNull ( node . Collection ) ;
@@ -135,7 +136,7 @@ public async Task TwoDirectoriesWithOneEmptyChildDirectory()
135136 Assert . Same ( root , rootNode . Collection ) ;
136137 Assert . Equal ( 0 , rootNode . Documents . Count ) ;
137138 Assert . Collection (
138- rootNode . Nodes ,
139+ rootNode . Nodes . OrderBy ( n => n . Name ) ,
139140 node1 =>
140141 {
141142 Assert . NotNull ( node1 . Collection ) ;
@@ -187,15 +188,15 @@ public async Task TwoDirectoriesWithTwoEmptyChildDirectories()
187188 Assert . Same ( root , rootNode . Collection ) ;
188189 Assert . Equal ( 0 , rootNode . Documents . Count ) ;
189190 Assert . Collection (
190- rootNode . Nodes ,
191+ rootNode . Nodes . OrderBy ( n => n . Name ) ,
191192 node1 =>
192193 {
193194 Assert . NotNull ( node1 . Collection ) ;
194195 Assert . Equal ( "test1" , node1 . Collection . Name ) ;
195196 Assert . Same ( rootNode . Collection , node1 . Collection . Parent ) ;
196197 Assert . Equal ( 0 , node1 . Documents . Count ) ;
197198 Assert . Collection (
198- node1 . Nodes ,
199+ node1 . Nodes . OrderBy ( n => n . Name ) ,
199200 node2 =>
200201 {
201202 Assert . NotNull ( node2 . Collection ) ;
@@ -220,7 +221,7 @@ public async Task TwoDirectoriesWithTwoEmptyChildDirectories()
220221 Assert . Same ( rootNode . Collection , node1 . Collection . Parent ) ;
221222 Assert . Equal ( 0 , node1 . Documents . Count ) ;
222223 Assert . Collection (
223- node1 . Nodes ,
224+ node1 . Nodes . OrderBy ( n => n . Name ) ,
224225 node2 =>
225226 {
226227 Assert . NotNull ( node2 . Collection ) ;
@@ -255,15 +256,15 @@ public async Task TwoDirectoriesWithTwoEmptyFiles()
255256 Assert . Same ( root , rootNode . Collection ) ;
256257 Assert . Equal ( 0 , rootNode . Documents . Count ) ;
257258 Assert . Collection (
258- rootNode . Nodes ,
259+ rootNode . Nodes . OrderBy ( n => n . Name ) ,
259260 node1 =>
260261 {
261262 Assert . NotNull ( node1 . Collection ) ;
262263 Assert . Equal ( "test1" , node1 . Collection . Name ) ;
263264 Assert . Same ( rootNode . Collection , node1 . Collection . Parent ) ;
264265 Assert . Equal ( 0 , node1 . Nodes . Count ) ;
265266 Assert . Collection (
266- node1 . Documents ,
267+ node1 . Documents . OrderBy ( n => n . Name ) ,
267268 document =>
268269 {
269270 Assert . Equal ( "test1.1" , document . Name ) ;
@@ -282,7 +283,7 @@ public async Task TwoDirectoriesWithTwoEmptyFiles()
282283 Assert . Same ( rootNode . Collection , node1 . Collection . Parent ) ;
283284 Assert . Equal ( 0 , node1 . Nodes . Count ) ;
284285 Assert . Collection (
285- node1 . Documents ,
286+ node1 . Documents . OrderBy ( n => n . Name ) ,
286287 document =>
287288 {
288289 Assert . Equal ( "test2.1" , document . Name ) ;
@@ -313,14 +314,14 @@ public async Task TwoDirectoriesWithTwoEmptyFilesAndEmptyDirectory()
313314 Assert . Same ( root , rootNode . Collection ) ;
314315 Assert . Equal ( 0 , rootNode . Documents . Count ) ;
315316 Assert . Collection (
316- rootNode . Nodes ,
317+ rootNode . Nodes . OrderBy ( n => n . Name ) ,
317318 node1 =>
318319 {
319320 Assert . NotNull ( node1 . Collection ) ;
320321 Assert . Equal ( "test1" , node1 . Collection . Name ) ;
321322 Assert . Same ( rootNode . Collection , node1 . Collection . Parent ) ;
322323 Assert . Collection (
323- node1 . Nodes ,
324+ node1 . Nodes . OrderBy ( n => n . Name ) ,
324325 node2 =>
325326 {
326327 Assert . NotNull ( node2 . Collection ) ;
@@ -330,7 +331,7 @@ public async Task TwoDirectoriesWithTwoEmptyFilesAndEmptyDirectory()
330331 Assert . Equal ( 0 , node2 . Nodes . Count ) ;
331332 } ) ;
332333 Assert . Collection (
333- node1 . Documents ,
334+ node1 . Documents . OrderBy ( n => n . Name ) ,
334335 document =>
335336 {
336337 Assert . Equal ( "test1.1" , document . Name ) ;
@@ -348,7 +349,7 @@ public async Task TwoDirectoriesWithTwoEmptyFilesAndEmptyDirectory()
348349 Assert . Equal ( "test2" , node1 . Collection . Name ) ;
349350 Assert . Same ( rootNode . Collection , node1 . Collection . Parent ) ;
350351 Assert . Collection (
351- node1 . Nodes ,
352+ node1 . Nodes . OrderBy ( n => n . Name ) ,
352353 node2 =>
353354 {
354355 Assert . NotNull ( node2 . Collection ) ;
@@ -358,7 +359,7 @@ public async Task TwoDirectoriesWithTwoEmptyFilesAndEmptyDirectory()
358359 Assert . Equal ( 0 , node2 . Nodes . Count ) ;
359360 } ) ;
360361 Assert . Collection (
361- node1 . Documents ,
362+ node1 . Documents . OrderBy ( n => n . Name ) ,
362363 document =>
363364 {
364365 Assert . Equal ( "test2.1" , document . Name ) ;
0 commit comments