Ensure all expected paths are logged on test failure (#65666)
authorAdam Sitnik <adam.sitnik@gmail.com>
Tue, 22 Feb 2022 09:40:20 +0000 (10:40 +0100)
committerGitHub <noreply@github.com>
Tue, 22 Feb 2022 09:40:20 +0000 (10:40 +0100)
commit4fd5132c1fb8292e2d94ad4a1b2fe62357205402
treea26ca474cd3f45d6a31ac9cd85a08a86fb872956
parenteeff29824557cbc3873c2d331d042a889310bac0
Ensure all expected paths are logged on test failure (#65666)

* move duplicated logic to a method

* ensure all paths are logged, so we can diagnose #65601

* Apply suggestions from code review

Co-authored-by: Stephen Toub <stoub@microsoft.com>
src/libraries/System.IO.FileSystem.Watcher/tests/Utility/FileSystemWatcherTest.cs