Adding test to verify FileStream.Dispose() ignores IO Related Exception in finalizer...
authorMaryam Ariyan <maryam.ariyan@microsoft.com>
Thu, 15 Feb 2018 03:20:00 +0000 (22:20 -0500)
committerGitHub <noreply@github.com>
Thu, 15 Feb 2018 03:20:00 +0000 (22:20 -0500)
commit065c7bfa8ef68f65480e274d8e1fb14234ed36b6
treeb67617d09e561408d5fe5dc1a2e14970abbc7c96
parentb206a823869992692f9f2d1a2d79ccd36e989e62
Adding test to verify FileStream.Dispose() ignores IO Related Exception in finalizer (dotnet/corefx#26921)

* Adding test to verify FileStream.Dispose() skips IO Related Exception only on finalization

* Skipping test on netfx because the behavior in netfx is different

Commit migrated from https://github.com/dotnet/corefx/commit/a15cc53eb5a4248c76bdc60beb3e31628bd8acf8
src/libraries/System.IO.FileSystem/tests/FileStream/Dispose.cs