Commit Graph
190 Commits
Author SHA1 Message Date
Gert Driesen 5bd3e0596e * XmlSerializerTests.cs: No longer derive from Assertion, fixed tests that
were cathing NUnit's AssertionException too.

svn path=/trunk/mcs/; revision=56569
2006-02-05 10:17:57 +00:00
Gert Driesen a8b7a205f6 * XmlSchemaExporterTests.cs: Reworked tests that fail on Mono due to bug
#77117 to pass on Mono (until that bug is fixed) and mark these tests 
NotDotNet.

svn path=/trunk/mcs/; revision=56563
2006-02-04 10:24:02 +00:00
Gert Driesen 514da3a616 * XmlReflectionImporterTests.cs: Marked tests NotWorking until fixes have
landed in svn.
* SoapReflectionImporterTests.cs: Added numerous tests.
* XmlSchemaImporterTests.cs: Added numerous tests.
* XmlSchemaExporterTests.cs: Added numerous tests.
* SoapSchemaExporterTests.cs: Added numerous tests.
* XmlSerializerTestClasses.cs: Added test classes for
XmlSchemaExporter. Fixed line endings (to CRLF).

svn path=/trunk/mcs/; revision=55929
2006-01-23 07:17:04 +00:00
Gert Driesen 91a95ca4e1 * System.Xml_test.dll.sources: Added SoapSchemaExporterTests.cs,
SoapReflectionImporterTests.cs, XmlSchemaImporterTests.cs.
* XmlReflectionImporterTests.cs: Added numerous tests. No longer
derive from Assertion.
* SoapReflectionImporterTests.cs: Added numerous tests.
* XmlSchemaImporterTests.cs: Added numerous tests.
* XmlSchemaExporterTests.cs: Added numerous tests.
* SoapSchemaExporterTests.cs: Added numerous tests.

svn path=/trunk/mcs/; revision=55191
2006-01-07 18:52:24 +00:00
Gert Driesen 1178126915 * XmlSchemaExporterTests.cs: Added tests for exporting structs, and
arrays. Added tests for bug #77117. Refactored some existing tests.

svn path=/trunk/mcs/; revision=54915
2005-12-29 18:50:09 +00:00
Gert Driesen 94c0b8b885 * XmlSchemaExporterTests.cs: Correct mistake.
svn path=/trunk/mcs/; revision=54900
2005-12-28 14:56:22 +00:00
Gert Driesen 8d6889edd0 * XmlSerializerTests.cs: Added serialization test for XmlSchema.
* XmlSchemaExporterTests.cs: Added tests for class, IXmlSerializable
and primitives.
* System.Xml_test.dll.sources: Added XmlSchemaExporterTests.cs.

svn path=/trunk/mcs/; revision=54898
2005-12-28 14:33:50 +00:00
Gert Driesen f58cfa58e2 * XmlSerializerTests.cs: Number individual tests.
svn path=/trunk/mcs/; revision=54885
2005-12-27 18:58:11 +00:00
Gert Driesen af42faa522 * XmlAttributesTests.cs: No longer derive from Assertion, number
individual tests.

svn path=/trunk/mcs/; revision=54871
2005-12-27 11:56:00 +00:00
Lluis Sanchez 6074454762 2005-12-05 Lluis Sanchez Gual <[email protected]>
* XmlSerializerTestClasses.cs:
	* DeserializeTests.cs: Added tests for bug #76808 and related behavior.

2005-12-05  Lluis Sanchez Gual  <[email protected]>

	* XmlSerializationReaderInterpreter.cs:
	* SerializationCodeGenerator.cs: When deserializing a collection,
	don't create a new collection if the property already has a 
	collection instance. This does not apply to arrays. Changed how nullabe
	array properties are set. Setting IsNullable=false to the property means
	that it won't be set if the read array is null (so, if the property
	already has a value, it will be kept).
	Another change is that can't never be null (only arrays can).


svn path=/trunk/mcs/; revision=53949
2005-12-05 20:44:42 +00:00
Lluis Sanchez a238942f0e 2005-12-01 Lluis Sanchez Gual <[email protected]>
* XmlSerializerTestClasses.cs:
	* XmlSerializerTests.cs: Added tests for bug #76860.


svn path=/trunk/mcs/; revision=53761
2005-12-01 12:22:13 +00:00
Vladimir Krasnov cf50bd21d7 * XmlTypeMapping.cs: fixed GetXmlName method, added difference of value serialization of flags and non-flags enums
* XmlSerializerTestClasses.cs: added two enum types, without 0-value
* XmlSerializerTests.cs: added tests for serialization enum's default value


svn path=/trunk/mcs/; revision=53451
2005-11-24 13:42:27 +00:00
Lluis Sanchez b63a5f42e9 2005-09-26 Lluis Sanchez Gual <[email protected]>
* XmlSerializerTests.cs, DeserializeTests.cs, 
	XmlSerializerTestClasses.cs: Added tests for serialization of
	arrays of choice values.


svn path=/trunk/mcs/; revision=50785
2005-09-26 16:15:47 +00:00
Lluis Sanchez 061d1d8e66 2005-09-21 Lluis Sanchez Gual <[email protected]>
* XmlSerializerTests.cs, Added test for bug #76049.


svn path=/trunk/mcs/; revision=50381
2005-09-21 15:53:05 +00:00
Lluis Sanchez a4aafd6734 2005-09-21 Lluis Sanchez Gual <[email protected]>
* XmlSerializerTests.cs, XmlSerializerTestClasses.cs: Added test
	for bug #75986.


svn path=/trunk/mcs/; revision=50376
2005-09-21 14:09:25 +00:00
Lluis Sanchez 4f5a2dd8a8 2005-08-24 Lluis Sanchez Gual <[email protected]>
* XmlSerializerTests.cs: Added test for bug #75855.
	* DeserializeTests.cs: New test.
	* XmlSerializerTestClasses.cs: New test classes.


svn path=/trunk/mcs/; revision=48802
2005-08-24 18:09:51 +00:00
Gert Driesen 3fb3755546 * ComplexDataStructure.cs: Fixed test due to change in default value
of XmlArrayItemAttribute.IsNullable.
* SoapAttributeAttributeTests.cs: Added tests for default values.
* SoapElementAttributeTests.cs: Added tests for default values.
* SoapEnumAttributeTests.cs: Added tests for default values.
* SoapIncludeAttributeTests.cs: Added tests for default values.
* SoapSchemaMemberTests.cs: Added tests for default values.
* SoapTypeAttributeTests.cs: Added tests for default values.
* XmlAnyElementAttributeTests.cs: Added tests for default values.
* XmlArrayAttributeTests.cs: Added tests for default values.
* XmlArrayItemAttributeTests.cs: Added tests for default values.
* XmlAttributeAttributeTests.cs: Added tests for default values.
* XmlChoiceIdentifierAttributeTests.cs: Added tests for default values.
* XmlElementAttributeTests.cs: Added tests for default values.
* XmlEnumAttributeTests.cs: Added tests for default values.
* XmlIncludeAttributeTests.cs: Added tests for default values.
* XmlRootAttributeTests.cs: Added tests for default values.
* XmlTextAttributeTests.cs: Added tests for default values.
* XmlTypeAttributeTests.cs: Added tests for default values.
* System.Xml_test.dll.sources: Added tests for default values of Xml 
Serialization attribute classes.
* SoapAttributeAttribute.cs: Return zero-length string if AttributeName or
DataType are null.
* SoapEnumAttribute.cs: Return zero-length string if Name is null.
* SoapIncludeAttribute.cs: Avoid using property in ctor.
* SoapSchemaMember.cs: Return zero-length string if MemberName is
null. MemberType should be XmlQualifiedName.Empty by default.
* SoapTypeAttribute.cs: Return zero-length string if TypeName is
null. Avoid using property in ctor.
* XmlArrayAttribute.cs: Return zero-length string if ElementName is
null. Avoid using property in ctor.
* XmlArrayItemAttribute.cs: IsNullable must be false by default.
Return zero-length string if DataType or ElementName are null. Avoid
using property in ctor.
* SoapElementAttribute.cs: Return zero-length string when DataType
or ElementName are null. Avoid using property in ctor.
* XmlAnyElementAttribute.cs: Return zero-length string when Name is
null. Avoid using property in ctor.
* XmlAttributeAttribute.cs: Avoid using property in ctor. Return
zero-length string if AttributeName or DataType are null.
* XmlChoiceIdentifierAttribute.cs: Return zero-length string when
MemberName is null.
* XmlElementAttribute.cs: Return zero-length string when DataType or
ElementName are null. Avoid using property in ctor.
* XmlEnumAttribute.cs: Avoid using property in ctor.
* XmlIncludeAttribute.cs: Avoid using property in ctor.
* XmlReflectionImporter.cs: AttributeName, ElementName and DataType
can no longer be null. Use check for zero-length string to determine
whether they are set. Corrected exception message when DataType is
set for complex type.
* XmlRootAttribute.cs: Return zero-length string if DataType or
ElementName are null. Avoid using property in ctor.
* XmlTextAttribute.cs: Return zero-length string if DataType is null.
* XmlTypeAttribute.cs: Return zero-length string if TypeName is null.

svn path=/trunk/mcs/; revision=47896
2005-08-01 18:45:29 +00:00
Raja R Harinath b1455e62eb * XmlSerializerTests.cs (TestSerializedDateTime): Fix sign of timezone.
(Verified with TZ=IST,GMT,CST6CDT).

svn path=/trunk/mcs/; revision=46124
2005-06-17 08:30:46 +00:00
Raja R Harinath d36df04998 * XmlSerializerTests.cs (TestSerializeDateTime): Avoid rounding
errors while printing timezone offset (off.TotalHours == 5.5 gets
printed as 6).

svn path=/trunk/mcs/; revision=46121
2005-06-17 08:12:31 +00:00
Lluis Sanchez 2bb89efdaf 2005-04-26 Lluis Sanchez Gual <[email protected]>
* XmlSerializerTests.cs:
	* DeserializeTests.cs:
	* XmlSerializerTestClasses.cs: Added tests for readonly properties and
	elements with spaces on them.


svn path=/trunk/mcs/; revision=43585
2005-04-26 09:20:55 +00:00
Lluis Sanchez 539cf95e9c 2005-03-30 Lluis Sanchez Gual <[email protected]>
* XmlSerializerTests.cs:
	* XmlReflectionImporterTests.cs:
	* DeserializeTests.cs:
	* XmlSerializerTestClasses.cs: Added tests for serialization of choices.


svn path=/trunk/mcs/; revision=42417
2005-03-31 08:40:30 +00:00
Lluis Sanchez 1466ec3475 2005-03-29 Lluis Sanchez Gual <[email protected]>
* XmlSerializerTests.cs:
	* DeserializeTests.cs: 
	* XmlSerializerTestClasses.cs: Added some tests for xml node serialization.


svn path=/trunk/mcs/; revision=42329
2005-03-29 11:42:18 +00:00
Atsushi Eno da23068c98 2005-02-28 Atsushi Enomoto <[email protected]>
* XmlSchemaTests.cs : just set NotWorking for trivial comparison tests.

	* XmlReflectionImporterTests.cs : set NotWorking for trivial empty
	  string comparison.

	* MsxslScriptTests.cs,
	  XslTransformTests.cs : set NotWorking for msxsl:script tests (they
	  premise runnable compilers existence which actually might not exist.)


svn path=/trunk/mcs/; revision=41273
2005-02-28 05:13:56 +00:00
Nick Drochak 9a15491ff7 2005-02-10 Nick Drochak <[email protected]>
* DeserializeTests.cs: Ignore new test on MS.NET, since it fails there.

svn path=/trunk/mcs/; revision=40361
2005-02-10 01:21:14 +00:00
Lluis Sanchez 1a7c6e0cda 2005-02-07 Lluis Sanchez Gual <[email protected]>
* DeserializeTests.cs: Added test case for bug #72265.


svn path=/trunk/mcs/; revision=40254
2005-02-07 17:45:51 +00:00
Nick Drochak e0d1a77a98 2005-01-30 Nick Drochak <[email protected]>
* ComplexDataStructure.cs:
	* DeserializationTests.cs: Ignore failures on .NET

svn path=/trunk/mcs/; revision=39799
2005-01-30 14:06:09 +00:00
Lluis Sanchez 2d39f2bd3d * XmlSerializerTestClasses.cs: Added some test classes.
* DeserializeTests.cs: Added tests for bug #61464.

svn path=/trunk/mcs/; revision=33231
2004-09-02 16:12:57 +00:00
Lluis Sanchez ce0ff3da1b Test update
svn path=/trunk/mcs/; revision=30869
2004-07-08 13:43:21 +00:00
Lluis Sanchez bb3d1a73c9 * XmlSerializerTests.cs: Added some identifiers for AssertEquals.
Minor fixes in Infoset method.
	* ComplexDataStructure.cs: New set of tests for testing complex object
	  serialization.

svn path=/trunk/mcs/; revision=24541
2004-03-24 19:31:28 +00:00
David Sheldon 9524252976 2004-03-13 David Sheldon <[email protected]>
* XmlReflectionImporterTests.cs: Switched the AssertEquals around
   the other way, so that the expecteed value was the first parameter.
   This makes the error messages you get out of it better.

svn path=/trunk/mcs/; revision=23971
2004-03-13 01:44:59 +00:00
Lluis Sanchez 06cd746bed * DeserializeTests.cs: Added test for empty enum deserialization (bug #55509).
* XmlAttributesTests.cs, XmlReflectionImporterTests.cs,
	  XmlSerializationWriterTests.cs, XmlSerializerTests.cs:
	  Simplified namespace hierarchy.
	* XmlSerializerTestClasses.cs: Added more test classes.

svn path=/trunk/mcs/; revision=23956
2004-03-12 15:55:33 +00:00
Lluis Sanchez 9f8ae02700 * DeserializeTests.cs, XmlAttributesTests.cs: Changed namespace.
* XmlSerializationWriterTests.cs, XmlSerializerTests.cs: Make xml compares
	  independent from the text format.

svn path=/trunk/mcs/; revision=21319
2003-12-18 12:55:37 +00:00
Atsushi Eno c0645bd71d 2003-05-20 Atsushi Enomoto <[email protected]>
* added DeserializeTests.cs and XmlAttributesTest.cs

svn path=/trunk/mcs/; revision=14714
2003-05-20 03:54:35 +00:00
Atsushi Eno 45d32bf07c 2003-05-18 Atsushi Enomoto <[email protected]>
* XmlSerializerTests.cs : fixed some AssertEquals() argument orders.
	  and replaced some Assert() with AssertEquals().
	  Applied USE_VERSION_1_1 to TestConstructor().

svn path=/trunk/mcs/; revision=14660
2003-05-18 17:08:01 +00:00
Dick Porter 9da1dc86f5 2003-05-16 Dick Porter <[email protected]>
* XmlSerializerTests.cs: Test what happens when nulls are passed
	to the constructor

svn path=/trunk/mcs/; revision=14628
2003-05-16 12:07:26 +00:00
Atsushi Eno 817c8a5db6 2003-05-16 Atsushi Enomoto <[email protected]>
* XmlSerializerTests.cs : fixed some argument orders and fixed
	  timezone dependent part of TestSerializeDateTime().

svn path=/trunk/mcs/; revision=14612
2003-05-15 19:13:49 +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 305ab3083d 2003-05-10 Atsushi Enomoto <[email protected]>
* added XmlSerializationWriterTests.cs. (by Erik)

svn path=/trunk/mcs/; revision=14428
2003-05-09 19:11:25 +00:00
Atsushi Eno 551cf034be 2003-04-25 Atsushi Enomoto <[email protected]>
* added XmlReflectionImporterTests.cs : added. (by Erik)

svn path=/trunk/mcs/; revision=13996
2003-04-25 03:17:46 +00:00
Atsushi Eno 140a4ec73a 2003-04-12 Atsushi Enomoto <[email protected]>
* added this file as a new entry.
	  See ../ChangeLog to find former ChangeLog entries.
	* added XmlSerializerTests.cs and XmlSerializerTestClasses.cs
	  (by Erik Lebel)

svn path=/trunk/mcs/; revision=13550
2003-04-12 13:41:24 +00:00