47 Commits
Author SHA1 Message Date
Vlad Brezae 53672c5f4c [interp] Enable System.Xml tests (#11791)
* [tests] Change timezone so it doesn't fail on UTC+2 systems

Change to remote UTC-1

* [interp] Enable System.XML tests
2018-11-28 07:19:08 -08:00
Alexander Köplinger 5ef930b5f8 [bcl] Build some assemblies with -warnaserror (#5295)
* [bcl] Build some assemblies with -warnaserror

This ensures that we keep the build warning free.

We'll only opt-in a few assemblies that already have zero warnings.
We also only apply this when using csc as mcs might raise different warnings.

For now just opt-in assemblies in the net_4_x profile.
2017-11-24 14:05:39 +01:00
Atsushi Eno 4990b4c47b First step to import referencesource System.Xml.
It is not simply replacement because we have to workaround dynamic codegen
for Xamarin.iOS.

Also there were several tests failing with MS implementation (e.g. for
W3C DOM conformance), so we had to disable them.

There is one regression that rather needs to be fixed in Reflection.Emit.

Also, some WCF tests fail with this implementation. They need to be
investigated, reviewed and appropriately fixed.
2015-03-02 11:36:38 +08:00
Marek Safar da7d598940 [system.xml] Disable failing test, requires reference source implementation 2015-02-04 18:46:30 +01:00
Alexander Köplinger 746650d1b9 [bcl] Remove more NET_2_0 checks from class libs 2015-01-17 05:45:39 +01:00
Horst Kakuschke 280fe42c65 Additional tests for Xamarin Bug 16742 + style enhancements 2013-12-17 13:53:25 +01:00
Horst Kakuschke 2ff1bf33aa Fixes Xamarin Bug 16742: XmlConvert.ToDateTime(string, XmlDateTimeSerializationMode) throws index out of bounds exception
Fix for bug + added tests for method
XmlConvert.ToDateTime(string, XmlDateTimeSerializationMode)
2013-12-11 20:14:17 +01:00
Sergey Bogdanov b6b26f5afd - XmlConvert.ToString to TimeSpan incorrectly returns T suffix even if Time was not set (0h 0m 0s) 2012-08-08 15:13:20 +03:00
Atsushi Eno 88c6254f34 Extend supported XmlDateTimeSerialization formats. Fixed bug #690475. 2011-04-28 17:35:38 +09:00
Atsushi Eno 8fd76fb60d Fix ToDateTime() with serialization mode to not mess hour based on timezone.
Fixed bug #661787.
2011-01-05 17:00:58 +09:00
Atsushi Eno f166d738ba Do not add 'zzz' to all DateTime formats blindly. Fixed bug #655089. 2010-11-26 14:36:31 +09:00
Atsushi Eno e1cad400ae 2010-01-25 Atsushi Enomoto <[email protected]>
Parse float and TimeSpan max/min values correctly.
Patch by Tiaan Geldenhuys.

svn path=/trunk/mcs/; revision=150102
2010-01-25 05:08:29 +00:00
Atsushi Eno e013411012 2010-01-15 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : Do not ignore ticks which are less than a
	  millisecond. Remove trailing zeros for milliseconds and ticks.

	* XmlConvertTests.cs : add test for ToString(TimeSpan) with small
	  ticks.


svn path=/trunk/mcs/; revision=149618
2010-01-15 10:49:03 +00:00
Atsushi Eno 4079df7702 2010-01-15 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : trim spaces when parsing TimeSpan.

	* XmlConvertTests.cs : add test for ToTimeSpan() with spaces.


svn path=/trunk/mcs/; revision=149617
2010-01-15 10:21:16 +00:00
Atsushi Eno a2eea4d7e5 2010-01-15 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : DateTimeOffset parse is sloppy.

	* XmlConvertTests.cs : add test for ToDateTimeOffset() with date
	  string with spaces.


svn path=/trunk/mcs/; revision=149609
2010-01-15 08:58:42 +00:00
Atsushi Eno 7f46cb5db2 2010-01-12 Atsushi Enomoto <[email protected]>
* XmlConvertTests.cs : added commented-out tests for the remaining
	  parse tests by Tiaan Geldenhuys for XLinq, with the reason why.


svn path=/trunk/mcs/; revision=149388
2010-01-12 09:14:24 +00:00
Atsushi Eno c16c7121b1 2010-01-12 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : ToSingle(string) should do the same as ToDouble().

	* XmlConvertTests.cs : float parse should do the same. Fix NaN test.


svn path=/trunk/mcs/; revision=149386
2010-01-12 08:48:17 +00:00
Atsushi Eno 6d97ab5da5 2010-01-12 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : ToDouble(string) should handle NaN, INF and -INF
	  with whitespace allowed.

	* XmlConvertTests.cs : another double parse test for string with
	  spaces, for string constants such as NaN.


svn path=/trunk/mcs/; revision=149385
2010-01-12 08:38:04 +00:00
Atsushi Eno 91f7cf5926 2010-01-12 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : ToDouble(string) and ToIntXX(string) allows
	  whitespaces.

	* XUtil.cs : to create an XNode from an object, do not use ToString()
	  directly. Handle TimeSpan in xsd manner.


svn path=/trunk/mcs/; revision=149382
2010-01-12 07:40:31 +00:00
Atsushi Eno 3e8c163580 2009-11-17 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : fix DateTimeOffset roundtrip by giving format
	  strings in refined order. Patch by Santa Marta, at:
	  http://irc.gimite.net/channel/mono-jp/archive/20091105
	  ( http://smdn.invisiblefulmoon.net/misc/forum/programming/#n10 )

	* XmlConvertTests.cs : add test for DateTimeOffset roundtrip.


svn path=/trunk/mcs/; revision=146324
2009-11-17 08:48:40 +00:00
Robert Jordan bd7622796a 2009-06-26 Robert Jordan <[email protected]>
* *.cs: Upgrade to new NUnit style.


svn path=/trunk/mcs/; revision=137010
2009-06-26 21:06:21 +00:00
Atsushi Eno a4075531b5 2008-06-11 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : fixed bug #397934. Utc mode accepts more formats.

	* XmlConvertTests.cs : added test for bug #397934


svn path=/trunk/mcs/; revision=105562
2008-06-11 11:27:45 +00:00
Atsushi Eno 20aff136fb 2008-06-11 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : no need for TARGET_JVM.

	* XmlConvertTests.cs : no need for TARGET_JVM. Fix wrong comparison.


svn path=/trunk/mcs/; revision=105558
2008-06-11 10:57:03 +00:00
Atsushi Eno 3ef5ecc28d 2008-06-05 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : now we can use roundtrip format for float/double.
	  Fixed bug #320424.

	* XmlConvertTests.cs : added test for bug #320424.


svn path=/trunk/mcs/; revision=104961
2008-06-05 07:55:34 +00:00
Konstantin Triger e175c2c052 TARGET_JVM: make sure XmlDateTimeSerializationMode.Unspecified works
svn path=/trunk/mcs/; revision=92606
2008-01-10 17:56:47 +00:00
Atsushi Eno a477ee03e7 revert the broken change that even fails on .NET 2.0.
svn path=/trunk/mcs/; revision=90445
2007-11-29 17:23:23 +00:00
Konstantin Triger ae40414c3e fix ToDateTime(XmlDateTimeSerializationMode.Unspecified)/ToString(DateTime) for local time
svn path=/trunk/mcs/; revision=90413
2007-11-29 07:57:02 +00:00
Atsushi Eno 0274fff8a3 2007-11-09 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : ToDateTime(XmlDateTimeSerializationMode) should
	  allow more strings than existing one. Fixed bug #339004.

	* XmlConvertTests.cs : added test for #339004 and more.


svn path=/trunk/mcs/; revision=89305
2007-11-09 08:48:09 +00:00
Gert Driesen 7d297a4a8a * XmlConvertTests.cs: Added link to MS bug report.
svn path=/trunk/mcs/; revision=88545
2007-10-31 09:43:18 +00:00
Atsushi Eno 756ab6c79b 2007-10-30 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : ToDateTime(string,string) should use ParseExact(),
	  not Parse(). Use 'K' for roundtrip format.

	* XmlCustomFormatter.cs : use RoundtripKind when converting to and
	  from DateTime.

	* XmlConvertTest.cs : added test for DateTime roundtrip.

	* XmlSerializerTests.cs : added test for bug #337729.


svn path=/trunk/mcs/; revision=88448
2007-10-30 12:33:34 +00:00
Atsushi Eno 044e2c1ec4 2007-04-25 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : MinValue and MaxValue are unchanged by the
	  serialization mode (unlike DateTime.ToString()).

	* XmlCustomFormatter.cs : fix GenerateToXmlString() as well.

	* XmlConvertTests.cs : added test for MaxValue serialization with
	  every XmlDateTimeSerializationMode.


svn path=/trunk/mcs/; revision=76275
2007-04-25 19:31:47 +00:00
Atsushi Eno 2e8e4e6a2f 2006-07-25 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : TimeSpan conversion for TimeSpan.MinValue was
	  failing.

	* XmlConvertTest.cs :
	  Added TimeSpan conversion test for min/max values.


svn path=/trunk/mcs/; revision=62944
2006-07-25 08:42:59 +00:00
Atsushi Eno 1c8a5029e0 2006-01-25 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : ToString(TimeSpan) should return valid duration
	  for TimeSpan.Zero, rather than "P". Fixed bug #77350

	* XmlConvertTests.cs : added test for bug #77350.


svn path=/trunk/mcs/; revision=56026
2006-01-25 03:36:13 +00:00
Atsushi Eno ee9d802656 2006-01-16 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : handle Ticks. Fixed bug #77252.

	* XmlConvertTests.cs : added test for bug #77252.


svn path=/trunk/mcs/; revision=55620
2006-01-16 06:06:54 +00:00
Atsushi Eno 8a668546b1 2005-11-09 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : implemented VerifyTOKEN().

	* XmlConvertTests.cs : tests for ToUInt16/32/64() and VerifyTOKEN().


svn path=/trunk/mcs/; revision=52870
2005-11-10 17:44:03 +00:00
Atsushi Eno 0278b90f43 2005-11-09 Atsushi Enomoto <[email protected]>
* XmlConvertTests.cs : some tests for ToInt64(), ToSByte(),


svn path=/trunk/mcs/; revision=52861
2005-11-10 17:18:42 +00:00
Atsushi Eno 84269d9282 2005-11-09 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : VerifyNCName() and VerifyName() throws
	  ArgumentNullException for "".

	* XmlConvertTests.cs : some tests for ToInt16(), ToInt32(),
	  VerifyName() and VerifyNCName().


svn path=/trunk/mcs/; revision=52857
2005-11-10 16:55:55 +00:00
Atsushi Eno 6b340411a9 2005-10-04 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : ToTimeSpan() resulted in an infinite loop when the
	  digits for "second" were not exactly 3. Fixed bug #76328.

	* XmlConvertTests.cs : added test for bug #76328.


svn path=/trunk/mcs/; revision=51188
2005-10-04 18:08:14 +00:00
Atsushi Eno 512ed7121f 2005-06-29 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : ToTimeSpan() should accept milliseconds (according
	  to ISO 8601 and XSD datatypes 3.2.6.1).

	* XmlConvertTests.cs : added timespan milliseconds testcase.


svn path=/trunk/mcs/; revision=46727
2005-06-29 17:35:43 +00:00
Atsushi Eno 6c489f7182 2005-02-16 Atsushi Enomoto <[email protected]>
* XmlConvertTests.cs : added some null/empty string cases for
	  EncodeName()/EncodeLocalName()/EncodeNmToken().


svn path=/trunk/mcs/; revision=40759
2005-02-16 16:31:10 +00:00
Atsushi Eno 682d3c1cab 2004-04-24 Atsushi Enomoto <[email protected]>
* XmlConvertTests.cs : Commented out locale-dependent tests.
	* XmlDocumentTests.cs : Uncommented now-testable lines.
	  Commented out that should not be allowed, such as non-XML-name node.

svn path=/trunk/mcs/; revision=25936
2004-04-24 14:22:00 +00:00
Atsushi Eno 0c2454195d 2004-04-20 Atsushi Enomoto <[email protected]>
* XmlCharacterDataTests.cs : Added more tests for Substring().
	* XmlConvertTests.cs : Commented out locale-dependent tests.
	* XmlDocumentTests.cs : Added LoadEntityReference().

svn path=/trunk/mcs/; revision=25719
2004-04-20 12:13:21 +00:00
Atsushi Eno 443f5dc95e 2003-10-05 Atsushi Enomoto <[email protected]>
* XmlConvertTests.cs : patch by Jonathan Kessler. Added more test
	  methods.
	* XmlUrlResolverTests.cs : Renamed NullArgs to ResolveUriWithNullArgs,
	  and added GetEntityWithNullArgs() (though it is uncommented).
	* XmlReaderCommonTests.cs : Added XML Schema-mode XmlValidatingReader
	  testing phase.

svn path=/trunk/mcs/; revision=18619
2003-10-05 02:42:52 +00:00
Atsushi Eno 19b526cef1 2003-07-24 Atsushi Enomoto <[email protected]>
* XmlConvertTests.cs,
	  XmlNodeTests.cs,
	  XmlTextWriterTests.cs : removed some compilation warning.
	* XmlNodeReaderTests.cs : reverted Jul. 12th. ReadInnerXmlWrongInit()
	  incorrect commit.
	* XmlValidatingReaderTests.cs : Code refactory (removed xml1, xml2...
	  and changed PrepareXmlReader() as returning validating reader.
	  Added indexer (this[]) property check and ValidationType.None check
	  to TestAttributeDefaultContribution().
	  Added TestExpandEntity(), TestPreserveEntity() and TestNormalization().

svn path=/trunk/mcs/; revision=16616
2003-07-24 17:34:42 +00:00
Atsushi Eno 5364030666 2003-06-01 Atsushi Enomoto <[email protected]>
* XmlConvertTests.cs : added VerifyNCName().

svn path=/trunk/mcs/; revision=15040
2003-06-01 05:57:26 +00:00
Martin Willemoes Hansen ba234c2a4a * Tests inherits from Assertion and Assertion. prefixes removed
svn path=/trunk/mcs/; revision=14558
2003-05-13 20:41:56 +00:00
Atsushi Eno a0d55b7f0e 2003-05-05 Atsushi Enomoto <[email protected]>
* added XmlConvertTests.cs.

svn path=/trunk/mcs/; revision=14269
2003-05-04 19:51:07 +00:00