The System.IO.Compression.ZipFile tests were leaving behind lots of temporary files and directories. I've modified the tests to delete these when the tests completes.
As long as I was modifying the tests, I also boosted the code coverage of ZipFile and ZipFileExtensions to 100% (the library itself isn't at 100% because of the SR file and some unused code in a shared common file).
And I fixed up a few "String"=>"string"s I saw along the way.
Commit migrated from https://github.com/dotnet/corefx/commit/28d96af2ccd6d1f2e3f0ce4788fc8ec21fd15a76
There are ~110 tests that have been disabled with an ActiveIssue for PlatformID.Linux | PlatformID.OSX. To simplify this and to avoid lots of additional churn when additional Unix-based platforms are added, I've added PlatformID.AnyUnix = Linux | OSX, and replaced all usage of Linux | OSX with just AnyUnix. When new platforms are added, we can simply add to the enum, expand the meaning of AnyUnix, and most tests meant to be disabled for Unix will automatically be disabled.
Commit migrated from https://github.com/dotnet/corefx/commit/c96932da11940e0bae05de8e364eac90a6e1786b
In dotnet/corefx#1523 I re-enabled several compression tests that we'd previously disabled due to the default string marshaling encoding on Linux not being UTF8, and once it was, these tests were passing for me locally. However, there's obviously some difference between my machine setup and the CI machine setup that's causing these Unicode tests to fail during CI but not for me locally. Since we know we need a complete globalization implementation on Linux and OSX (dotnet/corefx#846) such that it's not surprising these tests are failing (it's more surprising they're passing for me locally), I'm disabling these Unicode tests on all but Windows for now. This commit disables not only those from dotnet/corefx#1523 but all of the tests using the unicode.zip file.
Commit migrated from https://github.com/dotnet/corefx/commit/185667984a6b3175e28806304b756eb95730a6f1