222 Commits
Author SHA1 Message Date
Gert Driesen b06223ac09 * ComplexDataStructure.cs: Added MS product feedback bug ID to test
that fails on MS.NET.

svn path=/trunk/mcs/; revision=61336
2006-05-31 14:51:08 +00:00
Atsushi Eno 61ab44349c 2006-05-30 Atsushi Enomoto <[email protected]>
* SerializationCodeGenerator.cs,
	  XmlSerializerReaderInterpreter.cs : handle CDATA section as text
	  node. Fixed bug #78536.

	* XmlSerializerTests.cs : added tailored version of bug #78536 test.


svn path=/trunk/mcs/; revision=61294
2006-05-31 01:38:24 +00:00
Gert Driesen 0913889260 * XmlCodeExporterTests.cs: Added tests for arrays. Fixed usage of
XmlRootAttribute in tests.
* XmlCodeExporter.cs: Added bool argument to GenerateClass and
GenerateEnum methods that specifies whether we're dealing with a type
for a top-level element. In GenerateClass, do not always add Namespace
argument for XmlRootAttribute if isTopLevel is false, and do not
emit XmlRootAttribute if isTopLevel is false and no arguments have been
added.
* SoapCodeExporter.cs: Added bool argument to GenerateClass and
GenerateEnum methods.
* MapCodeGenerator.cs: Added bool argument to GenerateClass and
GenerateEnum methods.

svn path=/trunk/mcs/; revision=60710
2006-05-15 15:53:35 +00:00
Gert Driesen 28b780054d * SoapSchemaExporterTests.cs: Sync expected results with changes in test
classes.
* XmlCodeExporterTests.cs: Same.

svn path=/trunk/mcs/; revision=59921
2006-04-26 10:29:49 +00:00
Gert Driesen 2bfaa4cc5c * DeserializeTests.cs: Improved TestDeserialize_Enum test for
bug #78204.
* SerializationCodeGenerator.cs: For flag enums, we should split on all
whitespace chars instead of only on blanks.
* XmlTypeMapping.cs: Same. Added ToEnum method for converting from
constant name(s) to integral enum value.

svn path=/trunk/mcs/; revision=59918
2006-04-26 09:56:45 +00:00
Gert Driesen a99e0e1f9b * SoapAttributesTests.cs: Added tests for bug #78205.
* XmlSerializerTestClasses.cs: Added test classes and improved existing
classes for usage in upcoming bug reports.
* System.Xml_test.dll.sources: Added Test/System.Xml.Serialization/
SoapAttributesTests.cs.
* SoapAttributes.cs: The DefaultValueAttribute.Value should be returned
as SoapDefaultValue instead of the attribute itself. Fixes bug #78205.

svn path=/trunk/mcs/; revision=59917
2006-04-26 09:34:18 +00:00
Gert Driesen 62d8571061 * XmlSchemaExporter.cs: Introduce XmlSchemaObjectContainer class to
allow XML Schema items to be added to its parent in the same order
as MS.NET (schema elements before complex types, ...).
* XmlSchemaExporterTests.cs: Enabled tests which failed due to bug
#78145.

svn path=/trunk/mcs/; revision=59804
2006-04-24 10:27:55 +00:00
Gert Driesen a392bb4584 * XmlCodeExporterTests.cs: Enabled tests for XmlCodeExporter.
* XmlSchemaImporterTests.cs: Fixed EnumSimpleContent test to pass
on MS.NET 2.0.
* XmlCodeExporter.cs: On 2.0 profile, CodeGenerationOptions defaults to
GenerateProperties. Use full type name for XML serialization attributes
instead of shortcut (without Attribute suffix). Always add Namespace
argument for XmlRootAttribute on classes. Added IsNullable argument for
XmlRootRootAttribute on classes. For attribute members, only output
Form argument for XmlSchemaForm.Qualified. Use MapCodeGenerator base
ctor that takes CodeGenerationOptions.
* SoapCodeExporter.cs: Use MapCodeGenerator base ctor that takes
CodeGenerationOptions.
* MapCodeGenerator.cs: Added CodeGenerationOptions to ctor. On 2.0
profile, emit GeneratedCodeAttribute, SerializableAttribute,
DebuggerStepThroughAttribute and DesignerCategoryAttribute for classes.
To match MS.NET, emit attribute members before element members.
* XmlReflectionImporter.cs: Enums are never nullable.
* XmlSchemaImporter.cs: Set IsNullable on map using value of
XmlSchemaElement.IsNillable. Added LocateElement overload that takes
XmlSchemaElement.

svn path=/trunk/mcs/; revision=59768
2006-04-21 17:54:54 +00:00
Gert Driesen 69340a888f * XmlCodeExporterTests.cs: Added tests for XmlCodeExporter (currently
marked NotWorking).
* System.Xml_test.dll.sources: Added Test/System.Xml.Serialization/
XmlCodeExporterTests.cs.

svn path=/trunk/mcs/; revision=59707
2006-04-20 18:16:49 +00:00
Gert Driesen 425d73b4db * XmlSchemaImporterTests.cs: Enabled tests for bug #77907.
* XmlSchemaImporter.cs: Make sure we pass TypeData for primitive types
to XmlReflectionImporter and SoapReflectionImporter to keep from
always ending up with the XSD type that directly maps to the CLR type.
* XmlReflectionImporter.cs: Added overloads taking TypeData instead of
Type. This improves performance by avoiding the use of
TypeTranslator.GetTypeData for types imported from a schema and fixes
bug #77907.
* SoapReflectionImporter.cs: Same.

svn path=/trunk/mcs/; revision=59508
2006-04-15 13:14:38 +00:00
Gert Driesen 899b39f2eb * XmlSchemaImporterTests.cs: Added NotWorking tests as preparation
for XmlReflectionImporter and SoapReflectionImporter fixes. Reordered
tests.

svn path=/trunk/mcs/; revision=58515
2006-03-25 07:56:55 +00:00
Gert Driesen 4262df8c45 * XmlReflectionImporterTests.cs: Added ImportTypeMapping tests for
void and null type argument. Improved WrongChoices test to make sure
the exception(s) we throw match those of MSFT. Added test for bug
#77591.
* XmlReflectionImporter.cs: Throw NotSupportException instead of
InvalidOperationException (IOE) if void is specified as type in
ImportTypeMapping. To match MS.NET, surround importing of type in
try/catch block, and wrap any IOE in another IOE adding information
on the type that was being reflected. In CreateTypeMapping, surround
creating of map member in try/catch block, and wrap any IOE in another
IOE adding information on the member that was being reflected.
Modified exception message for missing enumeration value to match
MS.NET. In ImportTextElementInfo, throw IOE if Type is set in
XmlTextAttribute, and it differs from type of reflected member when
schema type of member is primitive or enum. Fixed bug #77591.

svn path=/trunk/mcs/; revision=58314
2006-03-22 20:25:21 +00:00
Gert Driesen 96bb8cbfee * XmlSchemaExporterTests.cs: Enabled tests for bug #77111.
* XmlSchemaExporter.cs: Import namespace of schema generated for
non-xsd primitive. Do not set zero-length TargetNamespace to avoid
emitting empty targetNamespace attribute in generated schema.
* XmlReflectionImporter.cs: Use WSDL types namespace for non-xsd
primitives.

svn path=/trunk/mcs/; revision=58132
2006-03-18 06:30:13 +00:00
Gert Driesen 9c4805562a * DeserializeTests.cs: Enabled tests for bug #77530.
* XmlSerializerTests.cs: Enabled tests for bug #77530.
* XmlTypeMapping.cs: EnumMapMember now also stores value for enums.
Modified EnumMapping.GetXmlName to use XmlCustomFormatter to support
serialization of integral value to enum constant name, and made sure
the exceptions we throw match those of MSFT. In EnumMapping.GetEnumName
throw InvalidOperationException if no matching enum constant exists.
In EnumMap ctor, initialize arrays holding XML names, enum names and
enum values.
* XmlSerializationReaderInterpreter.cs: Pass full type name to
EnumMapping.GetEnumName for construction of exception message.
* XmlSerializer.cs: In Deserialize, wrap InvalidOperationException
and InvalidCastException in another InvalidOperationException to match
MSFT. In Serialize, wrap InvalidOperationException, InvalidCastException
and the inner exception for a TargetInvocationException in an
InvalidOperationException to match MSFT.
* SerializationCodeGenerator.cs: In GenerateGetXmlEnumValue, use
XmlCustomFormatter.FromEnum in order to also support serialization
integral value to enum constant name. In 2.0 profile, throw
InvalidOperationException if numeric value cannot be serialized into
an enum constant value. In GenerateSingleEnumValue, no longer attempt
to parse unknown constant value but instead report it as
InvalidOperationException. Use string.Length instead of "" comparison
to check whether a string is empty. Fixed compiler warnings in
generated code (possible empty statement).
* XmlSerializationWriterInterpreter.cs: Pass full type name to
EnumMap.GetXmlName.
* XmlSchemaImporter.cs: Pass full type name to EnumMap.GetEnumName
to allow it to be used in exception messag* XmlReflectionImporter.cs.
Use FieldInfo instead of MemberInfo for enum fields. Use IsDefined 
instead of GetCustomAttributes for checking if a certain attribute
 is defined. Use integral value of enum constant in EnumMapMember ctor.
* SoapReflectionImporter.cs: Use FieldInfo instead of MemberInfo for
enum fields. Use IsDefined instead of GetCustomAttributes for checking
if a certain attribute is defined. Use integral value of enum constant
in EnumMapMember ctor.
es.

svn path=/trunk/mcs/; revision=57761
2006-03-10 04:37:54 +00:00
Lluis Sanchez e087a00fc0 2006-03-07 Lluis Sanchez Gual <[email protected]>
* System.Xml.Serialization/XmlSerializerTestClasses.cs:
	* System.Xml.Serialization/XmlSerializerTests.cs: Added tests
	  for XmlSchemaForm.


svn path=/trunk/mcs/; revision=57662
2006-03-07 19:25:14 +00:00
Gert Driesen e9f16365f6 * TypeData.cs: Fixed the following issues when dealing with Array
SchemaType:
- if a type implements IDictionary, throw a NotSupportedException
- if a type implements ICollection, then an Add method must exist
  which takes a single argument of a type to which the listitem type
  is assignable (meaning a base type or an interface that it
  implements). If such a method does not exist, then throw an
  InvalidOperationException.
- if a type implements IEnumerable, then the listitem type is
  determined by the type of the Current property of the (IEnumerator)
  type returned by the GetEnumerator() method or the private
  implementation of IEnumerable.GetEnumerator(). If there's no
  public Current property on the IEnumerator, then System.Object
  is assumed as listitem type. Similar as for types implementing
  ICollection, an Add method must exist which takes a single argument
  of a type to which the listitem type is assignable (meaning a base
  type or an interface that it implements). If such a method does not
  exist, then throw an InvalidOperationException.
* XmlReflectionImporter.cs: Enabled few tests for bug #77531.
* SoapReflectionImporter.cs: Enabled few tests for bug #77531.

svn path=/trunk/mcs/; revision=56956
2006-02-16 18:46:54 +00:00
Lluis Sanchez 648d3f7b0d 2006-02-16 Lluis Sanchez Gual <[email protected]>
* XmlSchemaImporterTests.cs: Added test for bug #76848.


svn path=/trunk/mcs/; revision=56949
2006-02-16 17:01:50 +00:00
Gert Driesen ba2802da94 * XmlRootAttributeTests.cs: Set eol-style to CRLF.
* SoapTypeAttributeTests.cs: Same.
* XmlIncludeAttributeTests.cs: Same.
* XmlTextAttributeTests.cs: Same.
* XmlSerializerTests.cs: Same.
* SoapIncludeAttributeTests.cs: Same.
* XmlSerializationWriterTests.cs: Same.
* XmlElementAttributeTests.cs: Same.
* ComplexDataStructure.cs: Same.
* DeserializerTests.cs: Same.
* SoapElementAttributeTests.cs: Same.
* XmlChoiceIdentifierAttributeTests.cs: Same.
* XmlArrayItemAttributeTests.cs: Same.
* XmlAnyElementAttributeTests.cs: Same.
* XmlAttributesTests.cs: Same.
* XmlAttributeAttributeTests.cs: Same.
* XmlEnumAttributeTests.cs: Same.
* SoapAttributeAttributeTests.cs: Same.
* SoapEnumAttributeTests.cs: Same.
* SoapSchemaMemberTests.cs: Same.
* XmlArrayAttributeTests.cs: Same.
* XmlSerializerTestClasses.cs: Same.
* XmlSchemaImporterTests.cs: Set eol-style to native.


svn path=/trunk/mcs/; revision=56801
2006-02-11 15:39:17 +00:00
Gert Driesen 919663d3dd * XmlReflectionImporterTests.cs: Added test for IDictionary import. Set eol
style to CRLF.
* SoapReflectionImporterTests.cs: Added test for IDictionary import.

svn path=/trunk/mcs/; revision=56800
2006-02-11 14:16:27 +00:00
Gert Driesen 8ecc0d6b83 * XmlSerializerTestClasses.cs: Fixed line endings (sigh).
svn path=/trunk/mcs/; revision=56799
2006-02-11 13:50:03 +00:00
Gert Driesen 2c926f4814 * XmlSerializerTests.cs: Numbered some tests.
* DeserializerTests.cs: Added tests for deserialization of enums, and primitive
types container.

svn path=/trunk/mcs/; revision=56768
2006-02-10 18:50:02 +00:00
Gert Driesen 6dfc560a70 * XmlSerializerTests.cs: Fixed build after failed merge (time to call it a
day, I guess)

svn path=/trunk/mcs/; revision=56723
2006-02-09 21:02:39 +00:00
Gert Driesen 1403a33280 * XmlTypeMapping.cs: Modified GetRealTypeMap to return current map if map
represents enum. Fixes bug #77501.
* XmlSerializerTests.cs: Added test for bug #77501. Added tests for XML and
encoded serialization of enums.

svn path=/trunk/mcs/; revision=56722
2006-02-09 20:55:36 +00:00
Gert Driesen ed446584f3 * SoapReflectionImporterTests.cs: Marked test NotDotNet.
svn path=/trunk/mcs/; revision=56718
2006-02-09 17:37:18 +00:00
Lluis Sanchez af09017623 2006-02-09 Lluis Sanchez Gual <[email protected]>
* XmlSerializerTests.cs, XmlSerializerTestClasses.cs: Added test
	for bug #77447.


svn path=/trunk/mcs/; revision=56717
2006-02-09 17:10:04 +00:00
Gert Driesen 223b3ff60b * XmlSerializerTests.cs: Added constants for usage in new tests. Added methods
for encoded serialization. Fixed line endings.

svn path=/trunk/mcs/; revision=56715
2006-02-09 17:03:13 +00:00
Gert Driesen c64e0ec874 * XmlSerializerTestClasses.cs: Added test classes.
svn path=/trunk/mcs/; revision=56713
2006-02-09 16:54:13 +00:00
Gert Driesen fe34bc872c * XmlSerializationWriterTests.cs: Use Assert instead of deprecated
Assertion class. Added tests for FromEnum, WriteXsiType, 
WriteTypedPrimitive and WritePotentiallyReferencingElement. Changed
accessibility of Reset and Content on XmlSerializationWriterTester
and added public Execute methods for WritePotentiallyReferencingElement
and WriteTypedPrimitive, to allow this class to be useful for tests
that have effect on the prefix for other tests.
* XmlSerializationReaderTests.cs: Added tests for ToEnum.
* System.Xml_test.dll.Sources: Added XmlSerializationReaderTests.cs.
* XmlSerializationWriter.cs: Implemented 2.0 version of FromEnum, and
CreateInvalidEnumValueException. Set eol-style to native.
* XmlCustomerFormatter.cs: Added FromEnum overload that takes name of
enum for which string value must be created. Set eol-style to native.
Modified FromEnum to behave more like MSFT's implementation:
- treat value as bit field.
- no longer return empty string if the value matches an id for which there's 
no corresponding name.
- if one of the ids has value 0 and there's a match for the enum value
(with a zero length XML name) or the enum value is 0, then return the 
corresponding XML for the id with value 0.
- in 2.0 profile, throw InvalidOperationException if no match is found
for (part of) the enum value.
Modifies ToEnum to match the MSFT implementation (as described in
.NET 2.0 SDK):
- Expect hashtable containing enum names as key, and corresponding
integral numbers as value.
- Do not report exception for whitespace-only value.
- Support space (MS docs are not clear about this) delimited list 
of names.
- typeName is only used to construct exception message.

svn path=/trunk/mcs/; revision=56700
2006-02-09 13:30:02 +00:00
Gert Driesen 7406b143c4 * XmlTypeAttributeTests.cs: Set eol-style to native.
* All: removed bogus eol-style property.

svn path=/trunk/mcs/; revision=56679
2006-02-08 13:40:24 +00:00
Gert Driesen 38110e57fb Realy really test eol-style on simple test file, to retrict possible damage;-)
svn path=/trunk/mcs/; revision=56678
2006-02-08 13:38:15 +00:00
Gert Driesen 18e72343e9 * XmlTextAttributeTests.cs: Set eol-style to native.
* XmlTypeAttributeTests.cs: Same.
* XmlSerializerTestClasses.cs: Same.
* XmlSerializerTests.cs: Same.
* XmlSerializationWriterTests.cs: Same.
* XmlRootAttributeTests.cs: Same.
* XmlReflectionImporterTests.cs: Same.
* XmlIncludeAttributeTests.cs: Same.
* XmlEnumAttributeTests.cs: Same.
* XmlElementAttributeTests.cs: Same.
* XmlChoiceIdentifierAttributeTests.cs: Same.
* XmlAttributesTests.cs: Same.
* XmlAttributeAttributeTests.cs: Same.
* XmlArrayItemAttributeTests.cs: Same.
* XmlArrayAttributeTests.cs: Same.
* XmlAnyElementAttributeTests.cs: Same.
* SoapTypeAttributeTests.cs: Same.
* SoapSchemaMemberTests.cs: Same.
* SoapAttributeAttribute.cs: Same.
* SoapElementAttributeTests.cs: Same.
* SoapEnumAttributeTests.cs: Same.
* SoapIncludeAttributeTests.cs: Same.
* ComplexDataStructure.cs: Same.
* DeserializeTests.cs: Same.

svn path=/trunk/mcs/; revision=56677
2006-02-08 13:28:13 +00:00
Gert Driesen fe970fe414 * DeserializeTests.cs: Use Assert instead of deprecated Assertion. Renumbered
tests. Fixed line endings.

svn path=/trunk/mcs/; revision=56579
2006-02-06 10:39:27 +00:00
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