Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGert Driesen <drieseng@users.sourceforge.net>2006-02-09 16:30:02 +0300
committerGert Driesen <drieseng@users.sourceforge.net>2006-02-09 16:30:02 +0300
commitfe34bc872c62ae173700620692e00cefa36d4a9b (patch)
tree132337f4177ecc7b335561e69f50377167173e89 /mcs/class/System.XML/System.Xml_test.dll.sources
parentf865900374044eb999e1ca8bfa2af559dd3def66 (diff)
* 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
Diffstat (limited to 'mcs/class/System.XML/System.Xml_test.dll.sources')
-rw-r--r--mcs/class/System.XML/System.Xml_test.dll.sources1
1 files changed, 1 insertions, 0 deletions
diff --git a/mcs/class/System.XML/System.Xml_test.dll.sources b/mcs/class/System.XML/System.Xml_test.dll.sources
index 6c13ea47063..a4a9de8a3fd 100644
--- a/mcs/class/System.XML/System.Xml_test.dll.sources
+++ b/mcs/class/System.XML/System.Xml_test.dll.sources
@@ -74,6 +74,7 @@ System.Xml.Serialization/XmlReflectionImporterTests.cs
System.Xml.Serialization/XmlRootAttributeTests.cs
System.Xml.Serialization/XmlSchemaExporterTests.cs
System.Xml.Serialization/XmlSchemaImporterTests.cs
+System.Xml.Serialization/XmlSerializationReaderTests.cs
System.Xml.Serialization/XmlSerializationWriterTests.cs
System.Xml.Serialization/XmlTextAttributeTests.cs
System.Xml.Serialization/XmlTypeAttributeTests.cs