@@ -65,8 +65,8 @@ public async Task FileTree_VirtualNode_FileSystem_MatchesIssuingFileSystemRefere
6565 using var fs = GetFileSystem ( ) ;
6666
6767 Assert . That (
68- await fs . GetFilesAsync ( "/" , "**" ) . CountAsync ( ) ,
69- Is . Not . Zero ) ;
68+ await fs . GetFilesAsync ( "/" , "**" ) . AnyAsync ( ) ,
69+ Is . True ) ;
7070
7171 await foreach ( var node in fs . GetFileNodesAsync ( "/" , "**" ) )
7272 {
@@ -85,8 +85,8 @@ public async Task Exists_ReturnsTrue_For_ExistingFile()
8585 using var fs = GetFileSystem ( ) ;
8686
8787 Assert . That (
88- await fs . GetFilesAsync ( "/" , "**" ) . CountAsync ( ) ,
89- Is . Not . Zero ) ;
88+ await fs . GetFilesAsync ( "/" , "**" ) . AnyAsync ( ) ,
89+ Is . True ) ;
9090
9191 await foreach ( var node in fs . GetFileNodesAsync ( "/" , "**" ) )
9292 {
@@ -114,8 +114,8 @@ public async Task File_OpenRead_ReturnsReadableStream()
114114 using var fs = GetFileSystem ( ) ;
115115
116116 Assert . That (
117- await fs . GetFilesAsync ( "/" , "**" ) . CountAsync ( ) ,
118- Is . Not . Zero ) ;
117+ await fs . GetFilesAsync ( "/" , "**" ) . AnyAsync ( ) ,
118+ Is . True ) ;
119119
120120 await foreach ( var file in fs . GetFilesAsync ( "/" , "**" ) )
121121 {
@@ -148,8 +148,8 @@ public async Task File_OpenWrite_ReturnsWritableStream()
148148 return ;
149149
150150 Assert . That (
151- await fs . GetFilesAsync ( "/" , "**" ) . CountAsync ( ) ,
152- Is . Not . Zero ) ;
151+ await fs . GetFilesAsync ( "/" , "**" ) . AnyAsync ( ) ,
152+ Is . True ) ;
153153
154154 await foreach ( var file in fs . GetFilesAsync ( "/" , "**" ) )
155155 {
@@ -205,8 +205,8 @@ public async Task File_Write_OverwritesContent_When_OverwriteIsTrue()
205205 return ;
206206
207207 Assert . That (
208- await fs . GetFilesAsync ( "/" , "**" ) . CountAsync ( ) ,
209- Is . Not . Zero ) ;
208+ await fs . GetFilesAsync ( "/" , "**" ) . AnyAsync ( ) ,
209+ Is . True ) ;
210210
211211 await foreach ( var file in fs . GetFilesAsync ( "/" , "**" ) )
212212 {
@@ -233,8 +233,8 @@ public async Task File_Write_ThrowsException_For_ExistingFile_When_OverwriteIsFa
233233 return ;
234234
235235 Assert . That (
236- await fs . GetFilesAsync ( "/" , "**" ) . CountAsync ( ) ,
237- Is . Not . Zero ) ;
236+ await fs . GetFilesAsync ( "/" , "**" ) . AnyAsync ( ) ,
237+ Is . True ) ;
238238
239239 await foreach ( var file in fs . GetFilesAsync ( "/" , "**" ) )
240240 {
@@ -324,8 +324,8 @@ public async Task File_Readonly_OpenWrite_ThrowsException()
324324 return ;
325325
326326 Assert . That (
327- await fs . GetFilesAsync ( "/" , "**" ) . CountAsync ( ) ,
328- Is . Not . Zero ) ;
327+ await fs . GetFilesAsync ( "/" , "**" ) . AnyAsync ( ) ,
328+ Is . True ) ;
329329
330330 await foreach ( var file in fs . GetFilesAsync ( "/" , "**" ) )
331331 {
@@ -362,8 +362,8 @@ public async Task File_Readonly_Write_ThrowsException()
362362 return ;
363363
364364 Assert . That (
365- await fs . GetFilesAsync ( "/" , "**" ) . CountAsync ( ) ,
366- Is . Not . Zero ) ;
365+ await fs . GetFilesAsync ( "/" , "**" ) . AnyAsync ( ) ,
366+ Is . True ) ;
367367
368368 await foreach ( var file in fs . GetFilesAsync ( "/" , "**" ) )
369369 {
@@ -395,8 +395,8 @@ public async Task File_Readonly_Delete_ThrowsException()
395395 return ;
396396
397397 Assert . That (
398- await fs . GetFilesAsync ( "/" , "**" ) . CountAsync ( ) ,
399- Is . Not . Zero ) ;
398+ await fs . GetFilesAsync ( "/" , "**" ) . AnyAsync ( ) ,
399+ Is . True ) ;
400400
401401 await foreach ( var file in fs . GetFilesAsync ( "/" , "**" ) )
402402 Assert . That ( ( ) => file . DeleteAsync ( ) , Throws . Exception ) ;
@@ -705,8 +705,8 @@ public async Task Directory_Create_For_ExistingDirectory()
705705 return ;
706706
707707 Assert . That (
708- await fs . GetDirectoriesAsync ( "/" , "**" ) . CountAsync ( ) ,
709- Is . Not . Zero ) ;
708+ await fs . GetDirectoriesAsync ( "/" , "**" ) . AnyAsync ( ) ,
709+ Is . True ) ;
710710
711711 await foreach ( var directory in fs . GetDirectoriesAsync ( "/" , "**" ) )
712712 await directory . CreateAsync ( ) ;
0 commit comments