Commit Graph
498 Commits
Author SHA1 Message Date
Marcos Henrich 411d4aa0bb Test TimeZoneInfo.GetUtcOffset with multiple DST and DateTimeKind. 2014-10-03 10:38:11 +02:00
Marcos Henrich 8ab9a76c7e Updated TimeZoneInfoTest.DSTTransisions to correct .NET behavior. 2014-10-03 10:38:10 +02:00
Zoltan Varga 03aee949f1 Merge pull request #1200 from akoeplinger/remove-jvm
[Cleanup] Remove TARGET_JVM
2014-08-28 19:17:43 -04:00
Marek Safar 5f5bed4643 Merge pull request #1188 from arktronic/master
[TimeZoneInfo] Fix DST bug and implement To/FromSerializedString
2014-08-14 14:16:19 +02:00
Alexander Köplinger 48e112d652 [Cleanup] Removed TARGET_JVM
It was once part of a special Java target profile, but this is no longer used today.
2014-08-08 03:28:34 +02:00
Alexander Köplinger 0450000dc4 [Cleanup] Removed a bunch of superfluous .csproj and .sln files
Most of these files weren't updated in the last >5 years and serve no purpose today, so they only clutter the repository.
2014-08-06 18:02:30 +02:00
Sasha Kotlyar 76a25717e7 Miscellaneous changes per review 2014-08-04 19:15:10 -04:00
Sasha Kotlyar a66732c039 [TimeZoneInfo] Fix issue with some floating DST transition times creating invalid DateTime values, and implement ToSerializedString and FromSerializedString.
This change is released under the MIT license.
2014-08-03 15:25:43 -04:00
Rodrigo Kumpera c5771113c2 [runtime] Don't perform double accounting of offset for named memory segments. Fixes #20591 2014-06-19 14:32:48 -04:00
Rodrigo Kumpera 66aaa61cb7 [System.Core] Add new tests for MemoryMappedFile. 2014-06-13 14:53:34 -04:00
Miguel de Icaza a64dbc3e94 MemoryMappedFile fixes
This patch includes a few fixes:

	* CreateNew will actually create a memory map file, the previous logic
	  in MemoryMapImpl.Open was wrong, and would fail if the file did not
	  exist.   We now cope with this (bug #20052 was caused by this).

 	* Some exceptions were wrong, so this patch updates the
	  exceptions being thrown to be the right ones

	* On Mobile, we inverted the logic to ensure that capacity must be
	  bigger or equal than the file size (which is what the API needs to do),
	  previously it performed the opposite test.

Added tests that match the behavior on .NET for this.
2014-05-31 12:53:11 -04:00
Rolf Bjarne Kvinge 19f49f93f9 Revert "Revert "Merge branch 'master' of https://github.com/mono/mono""
This reverts commit 8f09dad435.

8f09dad435 is reverting a merge commit,
which will not do what you think it does. It will revert much more,
so revert the revert to get back the unintentionally reverted commits.

It looks like the next commit (1a15d4ec54)
is doing the original intention (reverting 164f9cbec4),
so this revert will leave the tree in a good state, with no pending
reverts.
2014-04-25 16:57:01 +02:00
Alexis Christoforides 8f09dad435 Revert "Merge branch 'master' of https://github.com/mono/mono"
This reverts commit 9dd632fb9e, reversing
changes made to 164f9cbec4.
2014-04-23 14:56:39 -04:00
Marek Habersack 73f09870a1 Update test description to include full bug report url 2014-04-23 17:24:37 +02:00
Marek Habersack 3df23604a4 Correctly apply DST offset if the date being converted falls after Jan 1st and is within the last year's DST zone
The adjustment rule must take into account that DST can start in the previous year and extend to some initial period
of the DateTime's year. This patch makes the code take that into account and correctly applies the DST offset to the
date being converted to some target timezone.

Fixes xambug https://bugzilla.xamarin.com/show_bug.cgi?id=17155
2014-04-23 17:15:18 +02:00
Marek Habersack 44c0689534 A couple of fixes for TimeZoneInfo.ConvertTime.
* ConvertTime (DateTime, TimeZoneInfo) now correctly takes the date kind from the DateTime parameter
      and uses it to select the source time zone according to this criteria:

         if DateTime kind is Utc, use TimeZoneInfo.Utc as source, in all other cases use TimeZoneInfo.Local

    * Move argument checks in ConvertTime (DateTime, TimeZoneInfo, TimeZoneInfo) so that there's no risk of a NREX
      should sourceTimeZone be null.

Added relevant tests for all of the above changes.
2014-04-23 14:53:01 +02:00
Marek Safar 633db36bd3 [System.Core] Don't auto increment when trimming hashset. Fixes #18687 2014-04-09 21:19:11 +02:00
Marek Safar 2fd90f98a4 [interpreter] Implement simple quote expression. Fixes #18248 2014-03-11 14:29:55 +01:00
Zoltan Varga 34fa78a5d8 [bcl] Work around quadratic behavior in NunitLite's AreEquivalent () methods. 2014-03-08 16:11:36 -05:00
Alexander Köplinger b0032294da [Test] Cleaned up how a bunch of tests were ignored
Previously, many tests just had a return statement when the test shouldn't
be executed (e.g. Unix-only). This made it look like the test was successful
when in fact it wasn't executed at all.
Assert.Ignore() is now used instead to correctly exclude those tests.
2014-02-23 19:44:21 +01:00
Marek Safar f2eab9919d [dlr] Handle more expressions in interpreter 2014-01-26 11:35:09 +01:00
Marek Safar 95d5c30a29 New tests 2014-01-22 17:54:14 +01:00
Sebastien Pouliot 2ef208b1a6 [Test] Fix build of System.Core unit tests 2013-12-05 17:52:53 -05:00
Blewzman f17a1808cc Small coding style fixes. 2013-12-05 19:49:04 +01:00
Blewzman 3eae2c2407 Support IReadOnlyList in System.Linq.Enumerable.ElementAt and ElementAtOrDefault - with additional unit tests. 2013-12-05 19:35:35 +01:00
Marek Safar 521a61ae5d [linq] Enumerable.Join and GroupJoin needs to ignore null keys. Fixes #16530 2013-12-02 19:03:37 +01:00
Marek Safar 5d20cad529 [sle] Enable char equality comparison. Fixes #15582 2013-11-12 20:45:13 +01:00
Alistair Bush 98f1c8c584 Return Local DateTime instead of Unspecified for >net_4_0 2013-10-19 23:41:17 +13:00
Marek Safar f33ed3fd4f Fixes parallel enumerable index counter. Fixes #14515 2013-09-09 09:12:41 +02:00
Marek Safar cbca01b433 Add dispose checks to ReaderWriterLockSlim and fix race in currentThreadState initialization 2013-08-19 10:22:23 +02:00
Marek Safar a208b628e9 Implements lifted nullable comparison with null 2013-08-16 15:18:49 +02:00
Marek Safar 0e9c53b052 Workaround for legacy nunit 2013-08-15 11:17:02 +02:00
Marek Safar 8ffb6b1981 Workaround limitation of ancient nunit 2013-07-31 10:55:27 +02:00
Marek Safar 77d2f31ac1 Merge pull request #665 from andreas-auerswald/master
Serilaization TimeZoneInfo class
2013-07-30 06:56:54 -07:00
Andreas Auerswald a4edd897b5 Add TimeZoneInfo Serialization
Add serialization for the TimeZoneInfo, TimeZoneInfo.AdjustmentRule and TimeZoneInfo.TransitionTime class. It is compatible with the serialization in .Net for cross serialization/deserialization from Mono to .Net and vice versa.

The code in this commit is released under the terms of the MIT/X11 license.
2013-07-08 10:39:51 +02:00
Zoltan Varga 9bb552dcc0 Disable a failing System.Core test for mt (#12987). 2013-07-04 01:23:33 +02:00
Sebastien Pouliot f9ebdc5615 Re-enable a test for the MOBILE profile (by ensuring the required method is not removed by the linker) 2013-06-04 10:58:40 -04:00
Zoltan Varga 013a38cfba Implement MethodMirror.MakeGenericMethod (). 2013-06-04 08:01:32 +02:00
Zoltan Varga 3ac08cbb1b Disable a System.Core test which fails on mt because of linking. 2013-05-04 04:19:23 +02:00
Marek Safar 1ff548cb12 Update for mobile profile 2013-02-27 14:08:38 +01:00
Sebastien Pouliot 6597227b23 Aes[Managed|CryptoServiceProvider] have a few more differences with RjindaelManaged. Narrow that gap a bit. 2013-01-03 15:12:05 -05:00
Rolf Bjarne Kvinge 142e70fdcc TimeZoneInfo.Local must be cached, otherwise reference comparisons fail later on.
This fixes an issue reported here: http://lists.ximian.com/pipermail/monotouch/2012-September/011784.html
2012-09-17 12:05:43 +02:00
Jérémie Laval 551ca84754 [System.Core] Fix compare bug in PLinq's Contains implementation 2012-09-06 13:23:07 +01:00
Jérémie Laval 4ceeaaae89 [System.Core] Fix issue in Join where some data might have been dismissed by accident 2012-09-05 15:37:49 +01:00
Jérémie Laval bc2a63cd96 [System.Core] Returns false in SequenceEqual when the two sequences size are different 2012-09-04 16:36:36 +01:00
Enrico Sada 15b9cc32d4 Use HashSet.Comparer for set methods with IEnumerable collection
fix bug 6373 ( https://bugzilla.xamarin.com/show_bug.cgi?id=6373 )
2012-08-04 19:06:19 +02:00
James Bellinger 490a86b6ec Implemented PipeSecurity. GetAccessControl, SetAccessControl, and ACL-containing constructor overrides now work on pipes.
On another note, after writing a test I discovered Asynchronous pipes appear to be completely broken on Win32.
The class does not correctly handle overlapped I/O. This patch doesn't fix that.

One other fix in this patch, the DllImports for Win32 pipes did not have SetLastError set.
So, they were unable to return a meaningful error in the event of failure. This is now fixed, and
UnauthorizedAccessException correctly throws for pipe connects denied by ACL (necessary for PipeSecurity test).
2012-07-08 15:13:51 -04:00
Marek Safar c7492fcbdb Merge pull request #358 from adbre/iss3333
Do not support DST if no adjustment rules are given
2012-06-27 13:21:31 -07:00
Adam Brengesjö f0b9dd6ccc Unit tests for issue #3333 2012-06-27 20:24:13 +02:00
Marek Safar f75a9a9520 ifdef 4.0 using 2012-06-27 08:39:25 +01:00