10 Commits
Author SHA1 Message Date
Alexander Köplinger 07baa1cce4 [WindowsBase] Fix off-by-one error in ZipTime
The date/time struct in zip.h defines the month value as

    uInt tm_mon;            /* months since January - [0,11] */

.NET's DateTime object in turn stores months from 1-12. We didn't
take this into account when passing the values from managed->native
so the month ended up being off by one.

We didn't use this codepath before https://github.com/mono/mono/pull/3036
that's why it didn't show up until now.
2016-05-31 13:55:05 +02:00
Marek Safar 24230862fe [WindowsBase] Fixes test assert expectation logic 2016-05-31 10:07:11 +02:00
Joao Matos bc1967e73b [System.IO.Compression] Fixed date time handling of Zip entries. 2016-05-23 20:19:22 +01:00
Alexander Köplinger ddcfc42070 Cleanup namespace names of class lib tests to follow convention
A couple of the test suites didn't follow the MonoTests.<namespace of class under test> naming convention for the namespace.
2014-09-04 18:55:58 +02:00
Alan McGovern 8c06ad3203 [WindowsBase] Nuke a broken test
This looks like it's testing the behaviour of a stream with invalid
data which is already tested (correctly) in another test.
2012-10-21 22:57:20 -04:00
Alan McGovern 5736b87f2f [System.IO.Packaging] Fix some dispose related issues
Ensure we can call dispose multiple times without blowing up. Also
ensure that we do not close streams which are passed in by the user.
We should only close streams which are implicitly created by the API.
This is a modification of the patch proposed for bug #1464, which is
now fixed by this commit.
2011-10-18 00:45:38 +01:00
Alan McGovern c29472db13 [System.IO.Packaging] Add another test 2011-08-17 13:44:54 +01:00
Miguel de Icaza 5e52dab0a6 Put WindowsBase on mcs/class for System.IO.Packaging
svn path=/trunk/mcs/; revision=141398
2009-09-06 23:19:06 +00:00
Miguel de Icaza fd4cade468 move back to olive
svn path=/trunk/mcs/; revision=118141
2008-11-06 19:14:34 +00:00
Alan McGovern d72e4c702f Moving WindowsBase into the mcs tree
svn path=/trunk/mcs/; revision=117800
2008-11-03 19:30:08 +00:00