[Mono-dev] Xml Serialization tests failing under .NET 2.0
Gert Driesen
gert.driesen at telenet.be
Wed Feb 1 15:25:14 EST 2006
> -----Original Message-----
> From: mono-devel-list-bounces at lists.ximian.com
> [mailto:mono-devel-list-bounces at lists.ximian.com] On Behalf
> Of Atsushi Eno
> Sent: woensdag 1 februari 2006 8:30
> To: Gert Driesen
> Cc: Lluis Sanchez; mono-devel mailing list
> Subject: [Mono-dev] Xml Serialization tests failing under .NET 2.0
>
> Hello Gert,
>
> I'm wondering if you can take care of some Xml Serialization tests
> including whatever you added.
Atsushi, I know some of tests I added fail on MS.NET 2.0. I asked for advise
on this matter in one of my previous message.
Right now, these tests only pass on MS.NET when you added the "MS"
conditional compilation directive. I needed this as the result on Mono
currently does not match the result on MS.NET (due to bug #77117).
What do you propose: should I mark these tests NotWorking, or NotDotNet
until bug #77117 is fixed ?
> Under .NET 2.0 a bunch of those tests
> fail - for example,
>
> 35)
> MonoTests.System.XmlSerialization.XmlSerializerTests.TestSeria
> lizeEnumDefaultValue
> : System.InvalidOperationException : There was an error generating the
> XML document.
> ----> System.InvalidOperationException : Instance validation error:
> '0' is not a valid value for
> MonoTests.System.Xml.TestClasses.EnumDefaultValueNF.
> at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter
> xmlWriter, Object o, XmlSerializerNamespaces namespaces, String
> encodingStyle, String id)
>
> That EnumDefaultValueNF is defined as:
>
> public enum EnumDefaultValueNF { e1 = 1, e2 = 2, e3 = 3 }
>
> The test fails at:
>
> Serialize(new EnumDefaultValueNF());
>
> To me, since there is no 0 (the value created by the weird .ctor()
> above) in that enum, it should be invalidated - i.e. MS.NET 2.0 is
> correct.
I know support for this was added to Mono a while ago to match MS.NET 1.1.
I'll look into enabling that code only for the 1.0 profile.
> There are too many tests like this and I think you might be adding
> more, so you would be the best person to have a look at them ;)
Ok, I'll try to do it this weekend, or early next week.
Gert
More information about the Mono-devel-list
mailing list