[Mono-list] "Implement me" Exception
Eduardo Garcia Cebollero
kiwnix@yahoo.es
18 Jul 2002 21:43:19 +0200
--=-6mRfYFlNhYrCkgcHuG9e
Content-Type: multipart/mixed; boundary="=-q9JjB4wLmiL14WH7LTuG"
--=-q9JjB4wLmiL14WH7LTuG
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
I'm doing the System.IO.BinaryReader NUnit test, when i try to compile
it, i get the following error from mcs:
$ mcs BinaryReaderTest.cs -r /usr/lib/NUnitCore.dll -target:library=20
** (process:11847): WARNING **: unhandled exception System.Exception:
"Implement me"
in <0x0007c> (runtime invoke wrapper) Mono.CSharp.Driver:Main
(object,intptr,intptr)
It occours while compiling the atachment, It's my first NUnit test, i
don't know if it's my fail or not.
I tryed to isolate the error and it only appear if the TestCtor2()
method is present, i think the error occour while trying to compile the=20
try{....}catch(...){....} when a null reference is passed by parameter
to BinaryReader constructor with encoding.
I wish the information is usefull.
and I would like to have advice or tips about the test :)
Thanks for the time and excuseme for my poor english.
--=20
Eduardo Garcia Cebollero <kiwnix@yahoo.es>
--=-q9JjB4wLmiL14WH7LTuG
Content-Disposition: attachment; filename=BinaryReaderTest.cs
Content-Type: application/octet-stream; name=BinaryReaderTest.cs
Content-Transfer-Encoding: base64
Ly8gQmluYXJ5UmVhZGVyVGVzdC5jcyAtIE5Vbml0IFRlc3QgQ2FzZXMgZm9yIHRoZSBTeXN0ZW1J
Ty5CaW5hcnlSZWFkZXIgY2xhc3MKLy8KLy8gRWR1YXJkbyBHYXJjaWEgQ2Vib2xsZXJvIChraXdu
aXhAeWFob28uZXMpCi8vCi8vIChDKSBFZHVhcmRvIEdhcmNpYSBDZWJvbGxlcm8uCi8vIChDKSBY
aW1pYW4sIEluYy4gIGh0dHA6Ly93d3cueGltaWFuLmNvbQovLyAKCnVzaW5nIE5Vbml0LkZyYW1l
d29yazsKdXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uSU87CnVzaW5nIFN5c3RlbS5UZXh0OwoK
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G9kCgkJfQoJfQp9CgoK
--=-q9JjB4wLmiL14WH7LTuG--
--=-6mRfYFlNhYrCkgcHuG9e
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: Esta parte del mensaje esta firmada digitalmente
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQA9NxpXmWlcOUQvF6IRAsT4AKCATU9zj3Dvc740ROjzyzjdIt4EWACfRxlf
KnrsrpqwcKwTLOP8G4awgXo=
=IJjF
-----END PGP SIGNATURE-----
--=-6mRfYFlNhYrCkgcHuG9e--