[Mono-list] Bug in NUnit when initialising decimal
Duncan Mak
duncan@ximian.com
01 Jun 2002 23:59:58 -0400
--=-1qGMzS/Hq4WyVFh56dPT
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
On Sat, 2002-06-01 at 10:06, Nick Drochak wrote:
> The bug seems to be fixed now. There were at least a couple different
> things wrong, but ConvertTest runs on mono on Linux now. Of course
> there are errors, but at least now we can fix the class lib.
>
Thanks for all the hard work for making the test run. I just tried to
run the test on my machine and I've attached the output. So far, we're
getting 13 errors.
I had a brief look at the error output, and it seems like a lot of them
are causes by Exceptions thrown, and not directly by System.Convert
itself. Is it true that this TestSuite runs with mscorlib? If yes, then
some of the Parse () methods we have are not complete.
<duncan@diphthong: ~/Mono/install/bin/ > mono ./NUnitConsole_mono.exe
MonoTests.System.ConvertTest,corlib_linux_test.dll
.....E.E.E..E.E.E.E.E.E.F.E.F.E..E.F.E
Time: 0.813
There were 13 errors:
...
FAILURES!!!
Tests Run: 22, Failures: 3, Errors: 13
We do have 3 failures. I'll look into them right now.
Duncan.
--=-1qGMzS/Hq4WyVFh56dPT
Content-Disposition: attachment; filename=errors
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; name=errors; charset=ISO-8859-1
<duncan@diphthong: ~/Mono/install/bin/ > mono ./NUnitConsole_mono.exe MonoT=
ests.
System.ConvertTest,corlib_linux_test.dll
.....E.E.E..E.E.E.E.E.E.F.E.F.E..E.F.E
Time: 0.618
There were 13 errors:
1) TestToUInt64(MonoTests.System.ConvertTest): the digits are invalid.(Syst=
em.Fo
rmatException)
in <0x001a8> System.Convert:ConvertFromBase (string,uint)
in <0x00a1e> MonoTests.System.ConvertTest:TestToUInt64 ()
in (unmanaged) System.Reflection.MonoMethod:InternalInvoke ()
in <0x00021> System.Reflection.MonoMethod:Invoke (object,System.Reflection.=
Bindi
ngFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
in <0x0017d> NUnit.Framework.TestCase:RunTest ()
in <0x0001c> NUnit.Framework.TestCase:RunBare ()
in <0x00010> .ProtectedProtect:Protect ()
in <0x00034> NUnit.Framework.TestResult:RunProtected (NUnit.Framework.ITest=
,NUni
t.Framework.IProtectable)
2) TestToUInt32(MonoTests.System.ConvertTest): the digits are invalid.(Syst=
em.Fo
rmatException)
in <0x001a8> System.Convert:ConvertFromBase (string,uint)
in <0x0088b> MonoTests.System.ConvertTest:TestToUInt32 ()
in (unmanaged) System.Reflection.MonoMethod:InternalInvoke ()
in <0x00021> System.Reflection.MonoMethod:Invoke (object,System.Reflection.=
Bindi
ngFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
in <0x0017d> NUnit.Framework.TestCase:RunTest ()
in <0x0001c> NUnit.Framework.TestCase:RunBare ()
in <0x00010> .ProtectedProtect:Protect ()
in <0x00034> NUnit.Framework.TestResult:RunProtected (NUnit.Framework.ITest=
,NUni
t.Framework.IProtectable)
3) TestToUInt16(MonoTests.System.ConvertTest): the digits are invalid.(Syst=
em.Fo
rmatException)
in <0x001a8> System.Convert:ConvertFromBase (string,uint)
in <0x00941> MonoTests.System.ConvertTest:TestToUInt16 ()
in (unmanaged) System.Reflection.MonoMethod:InternalInvoke ()
in <0x00021> System.Reflection.MonoMethod:Invoke (object,System.Reflection.=
Bindi
ngFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
in <0x0017d> NUnit.Framework.TestCase:RunTest ()
in <0x0001c> NUnit.Framework.TestCase:RunBare ()
in <0x00010> .ProtectedProtect:Protect ()
in <0x00034> NUnit.Framework.TestResult:RunProtected (NUnit.Framework.ITest=
,NUni
t.Framework.IProtectable)
4) TestToSingle(MonoTests.System.ConvertTest): Unknown char: ,(System.Forma=
tExce
ption)
in <0x0057e> System.Double:Parse (string,System.Globalization.NumberStyles,=
Syste
m.IFormatProvider)
in <0x0077e> MonoTests.System.ConvertTest:TestToSingle ()
in (unmanaged) System.Reflection.MonoMethod:InternalInvoke ()
in <0x00021> System.Reflection.MonoMethod:Invoke (object,System.Reflection.=
Bindi
ngFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
in <0x0017d> NUnit.Framework.TestCase:RunTest ()
in <0x0001c> NUnit.Framework.TestCase:RunBare ()
in <0x00010> .ProtectedProtect:Protect ()
in <0x00034> NUnit.Framework.TestResult:RunProtected (NUnit.Framework.ITest=
,NUni
t.Framework.IProtectable)
5) TestToSByte(MonoTests.System.ConvertTest): the digits are invalid.(Syste=
m.For
matException)
in <0x001a8> System.Convert:ConvertFromBase (string,uint)
in <0x0000e> System.Convert:ToSByte (string,uint)
in <0x00814> MonoTests.System.ConvertTest:TestToSByte ()
in (unmanaged) System.Reflection.MonoMethod:InternalInvoke ()
in <0x00021> System.Reflection.MonoMethod:Invoke (object,System.Reflection.=
Bindi
ngFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
in <0x0017d> NUnit.Framework.TestCase:RunTest ()
in <0x0001c> NUnit.Framework.TestCase:RunBare ()
in <0x00010> .ProtectedProtect:Protect ()
in <0x00034> NUnit.Framework.TestResult:RunProtected (NUnit.Framework.ITest=
,NUni
t.Framework.IProtectable)
6) TestToInt64(MonoTests.System.ConvertTest): the digits are invalid.(Syste=
m.For
matException)
in <0x001a8> System.Convert:ConvertFromBase (string,uint)
in <0x00050> System.Convert:ToInt64 (string,uint)
in <0x00b28> MonoTests.System.ConvertTest:TestToInt64 ()
in (unmanaged) System.Reflection.MonoMethod:InternalInvoke ()
in <0x00021> System.Reflection.MonoMethod:Invoke (object,System.Reflection.=
Bindi
ngFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
in <0x0017d> NUnit.Framework.TestCase:RunTest ()
in <0x0001c> NUnit.Framework.TestCase:RunBare ()
in <0x00010> .ProtectedProtect:Protect ()
in <0x00034> NUnit.Framework.TestResult:RunProtected (NUnit.Framework.ITest=
,NUni
t.Framework.IProtectable)
7) TestToInt32(MonoTests.System.ConvertTest): the digits are invalid.(Syste=
m.For
matException)
in <0x001a8> System.Convert:ConvertFromBase (string,uint)
in <0x008f4> MonoTests.System.ConvertTest:TestToInt32 ()
in (unmanaged) System.Reflection.MonoMethod:InternalInvoke ()
in <0x00021> System.Reflection.MonoMethod:Invoke (object,System.Reflection.=
Bindi
ngFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
in <0x0017d> NUnit.Framework.TestCase:RunTest ()
in <0x0001c> NUnit.Framework.TestCase:RunBare ()
in <0x00010> .ProtectedProtect:Protect ()
in <0x00034> NUnit.Framework.TestResult:RunProtected (NUnit.Framework.ITest=
,NUni
t.Framework.IProtectable)
8) TestToInt16(MonoTests.System.ConvertTest): the digits are invalid.(Syste=
m.For
matException)
in <0x001a8> System.Convert:ConvertFromBase (string,uint)
in <0x00875> MonoTests.System.ConvertTest:TestToInt16 ()
in (unmanaged) System.Reflection.MonoMethod:InternalInvoke ()
in <0x00021> System.Reflection.MonoMethod:Invoke (object,System.Reflection.=
Bindi
ngFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
in <0x0017d> NUnit.Framework.TestCase:RunTest ()
in <0x0001c> NUnit.Framework.TestCase:RunBare ()
in <0x00010> .ProtectedProtect:Protect ()
in <0x00034> NUnit.Framework.TestResult:RunProtected (NUnit.Framework.ITest=
,NUni
t.Framework.IProtectable)
9) TestToDouble(MonoTests.System.ConvertTest): This conversion is not suppo=
rted.
(System.InvalidCastException)
in <0x00030> System.Convert:ToDouble (byte)
in <0x001e2> MonoTests.System.ConvertTest:TestToDouble ()
in (unmanaged) System.Reflection.MonoMethod:InternalInvoke ()
in <0x00021> System.Reflection.MonoMethod:Invoke (object,System.Reflection.=
Bindi
ngFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
in <0x0017d> NUnit.Framework.TestCase:RunTest ()
in <0x0001c> NUnit.Framework.TestCase:RunBare ()
in <0x00010> .ProtectedProtect:Protect ()
in <0x00034> NUnit.Framework.TestResult:RunProtected (NUnit.Framework.ITest=
,NUni
t.Framework.IProtectable)
10) TestToDateTime(MonoTests.System.ConvertTest): Invalid format(System.For=
matEx
ception)
in <0x00128> System.DateTime:ParseExact (string,string[],System.IFormatProv=
ider,
System.Globalization.DateTimeStyles)
in <0x0020f> System.DateTime:Parse (string,System.IFormatProvider,System.Gl=
obali
zation.DateTimeStyles)
in <0x00017> System.DateTime:Parse (string,System.IFormatProvider)
in <0x00012> System.DateTime:Parse (string)
in <0x0000d> System.Convert:ToDateTime (string)
in <0x001df> MonoTests.System.ConvertTest:TestToDateTime ()
in (unmanaged) System.Reflection.MonoMethod:InternalInvoke ()
in <0x00021> System.Reflection.MonoMethod:Invoke (object,System.Reflection.=
Bindi
ngFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
in <0x0017d> NUnit.Framework.TestCase:RunTest ()
in <0x0001c> NUnit.Framework.TestCase:RunBare ()
in <0x00010> .ProtectedProtect:Protect ()
in <0x00034> NUnit.Framework.TestResult:RunProtected (NUnit.Framework.ITest=
,NUni
t.Framework.IProtectable)
11) TestToByte(MonoTests.System.ConvertTest): the digits are invalid.(Syste=
m.For
matException)
in <0x001a8> System.Convert:ConvertFromBase (string,uint)
in <0x0000e> System.Convert:ToByte (string,uint)
in <0x00894> MonoTests.System.ConvertTest:TestToByte ()
in (unmanaged) System.Reflection.MonoMethod:InternalInvoke ()
in <0x00021> System.Reflection.MonoMethod:Invoke (object,System.Reflection.=
Bindi
ngFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
in <0x0017d> NUnit.Framework.TestCase:RunTest ()
in <0x0001c> NUnit.Framework.TestCase:RunBare ()
in <0x00010> .ProtectedProtect:Protect ()
in <0x00034> NUnit.Framework.TestResult:RunProtected (NUnit.Framework.ITest=
,NUni
t.Framework.IProtectable)
12) TestIsDBNull(MonoTests.System.ConvertTest): A null value was found wher=
e an=20
object instance was required(System.NullReferenceException)
in <0x0000c> System.Convert:IsDBNull (object)
in <0x000ca> MonoTests.System.ConvertTest:TestIsDBNull ()
in (unmanaged) System.Reflection.MonoMethod:InternalInvoke ()
in <0x00021> System.Reflection.MonoMethod:Invoke (object,System.Reflection.=
Bindi
ngFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
in <0x0017d> NUnit.Framework.TestCase:RunTest ()
in <0x0001c> NUnit.Framework.TestCase:RunBare ()
in <0x00010> .ProtectedProtect:Protect ()
in <0x00034> NUnit.Framework.TestResult:RunProtected (NUnit.Framework.ITest=
,NUni
t.Framework.IProtectable)
13) TestChangeType(MonoTests.System.ConvertTest): An invalid argument was s=
pecif
ied.(System.ArgumentException)
in <0x007ae> System.Convert:ToType (object,System.Type,System.IFormatProvid=
er)
in <0x00077> System.Convert:ChangeType (object,System.TypeCode)
in <0x002c0> MonoTests.System.ConvertTest:TestChangeType ()
in (unmanaged) System.Reflection.MonoMethod:InternalInvoke ()
in <0x00021> System.Reflection.MonoMethod:Invoke (object,System.Reflection.=
Bindi
ngFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
in <0x0017d> NUnit.Framework.TestCase:RunTest ()
in <0x0001c> NUnit.Framework.TestCase:RunBare ()
in <0x00010> .ProtectedProtect:Protect ()
in <0x00034> NUnit.Framework.TestResult:RunProtected (NUnit.Framework.ITest=
,NUni
t.Framework.IProtectable)
There were 3 failures:
1) TestToDecimal(MonoTests.System.ConvertTest) "#H10 expected:<1234.234> bu=
t was
:<1234>"
2) TestToChar(MonoTests.System.ConvertTest) "#F36 expected:<System.FormatEx=
cepti
on> but was:<System.ArgumentNullException>"
3) TestGetTypeCode(MonoTests.System.ConvertTest) "#B08 expected:<Object> bu=
t was
:<Empty>"
FAILURES!!!
Tests Run: 22, Failures: 3, Errors: 13
--=-1qGMzS/Hq4WyVFh56dPT--