This test is sensitive to the line ending mode used by git. When LF is used by
git (which is what Cygwin's git defaults to) this test fails on Windows since
CRLF will be used as line ending in the serialized XML. This patch changes the
test to use Environment.NewLine explicitly in the expected string.
The order of those namespaces are insignificant, and the latest
combination of mono corlib (partly referencesource-d) and sys.xml
(referencesource except for XmlSerializer) caused this implementation
glitch.
* XmlSerializerTests.cs : added deserialization test for
XmlSchemaProviderAttribute use.
* XmlReflectionImporterTests.cs : added test for conclict resolution
between defaultNamespace and XmlSchemaProvider() namespace.
* XmlSchemaExporterTests.cs : use Infoset() comparison.
* XmlTypeMapping.cs : Namespace and XmlTypeNamespace could be
different when an explicit namespace is specified (e.g. at
XmlReflectionImporter.ctor).
* SerializationCodeGenerator.cs,
XmlSerializationWriterInterpreter.cs :
revert XmlTypeMapping.XmlTypeNamsepace usage. Now with the fix
above, original code should work fine.
svn path=/trunk/mcs/; revision=86346
* XmlTypeMapping.cs, XmlSerializationWriterInterpreter.cs,
SerializationCodeGenerator.cs :
More XmlSchemaProviderAttribute method check. Use QName returned
by the method for the output root name.
* XmlSerializerTests.cs, XmlReflectionImporterTests.cs :
added tests for XmlSchemaProviderAttribute and how its qname works.
svn path=/trunk/mcs/; revision=86340
* XmlReflectionImporter.cs : do not reject XmlArrayAttribute on
byte[] (processed as primitive SchemaType). Fixed bug #81880.
* XmlReflectionImporterTest.cs : test for bug #81880.
svn path=/trunk/mcs/; revision=84548
* XmlTypeMapElementInfo.cs : set nullable if the type is Nullable<T>.
* XmlReflectionImporterTests.cs : added another test for nullable
container.
svn path=/trunk/mcs/; revision=73120
* XmlReflectionImporter.cs : CanBeNull() should return true when the
argument is generic nullable value type.
* XmlReflectionImporterTests.cs : added test for nullable int import.
svn path=/trunk/mcs/; revision=73117
* TypeData.cs : reject generic type definitions.
* TypeTranslator.cs : Make generic type names in XML compatible with
.net: foo_x0060_1 -> fooOfString.
* XmlSerializerTests.cs : most of generic tests are working now.
* XmlReflectionImporterTests.cs : test for rejecting generic type
definition.
svn path=/trunk/mcs/; revision=71001
Fixed bug #78611.
* TypeData.cs, TypeTranslator.cs: improved TypeData to actually store
"nullable" information. Introduced new primitiveNullableTypes pool
whose TypeData has 'true' for new IsNullable property. This
property is also used for non-primitive types.
* XmlReflectionImporter.cs : there, use TypeData.IsNullable instead
of IsValueType, to handle nullable types.
* XmlReflectionImporterTests.cs : added test for class that contains
nullable value type field whose XmlElementAttribute IsNullable.
svn path=/trunk/mcs/; revision=68341
* XmlSerializerTestClasses.cs: Added test classes for encoded SOAP.
* XmlSerializerTests.cs: Added new tests and fixed existing test.
* XmlReflectionImporterTests.cs: Added test for invalid default
values.
* SoapReflectionImporterTests.cs: Fixed numbering of tests.
* XmlSerializer.cs: Corrected exception message when deserialization
fails.
* SerializationCodeGenerator.cs: Added support for flag enums.
* XmlReflectionImporter.cs: Use InvalidOperationException wrapper for
all exceptions that occur while reflecting member. Validate default
values to match MS.
* SoapReflectionImporter.cs: Revert small part of previous patch as
XmlSerializer expects enum value.
svn path=/trunk/mcs/; revision=66524
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
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
* 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
* 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