[Mono-list] "Implement me" Exception

Presidente LinUPS (direccion provisional) kiwnix@yahoo.es
20 Jul 2002 03:00:05 +0200


--=-M3Kg877X1BSSDFwg/kvZ
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

El vie, 19-07-2002 a las 01:14, Martin Baulig escribi=C3=B3:
> Hi Eduardo,

Hi Martin

>=20
> your test case contains a few syntax errors:
>=20
> 1.) You defined SetUp() twice (I guess you wanted to call one of them Shu=
tDown).
>=20
> 2.) In TestCtor2, you tried to pass a class `Encoding' as an argument
>     to the constructor.  MCS will now correctly report a syntax error
>     when you attempt to do this rather than crashing.
>=20
>     The correct way to do it is
>=20
> 	BinaryReader r =3D new BinaryReader((Stream)null,Encoding.Unicode);
>=20
>     This'll pass an instance of this class (ie. an object) to the
>     constructor, not the class itself.
>=20
> 3.) I don't know what you wanted to do with
>=20
> 	byte[] b =3D new byte[30];
> 	BinaryReader r =3D new BinaryReader(m,(Encoding)b[2]);
>=20
>     You cannot convert a single byte into an object.  Changing this to
>=20
> 	BinaryReader r =3D new BinaryReader(m,(Encoding)null);
>=20
>     like you did a few lines earlier should do it.
>=20
> 4.) I think you must link against NUnitCore_mono.dll, not
>     NUnitCore.dll, but not sure.
>=20
> Here's your corrected test case:
>=20
>=20
> ______________________________________________________________________
>=20
> Btw. you should update your runtime, class libraries and mcs first - I
> committed some larger changes to it today.
>=20
> Martin

Thanks a lot for the feedback and the mcs fix, i'm still working in the
NUnit test, i will send news when i finish it :)

Bye, and thankyou very much

                   Eduardo Garcia Cebollero a.k.a. kiwnix
      Usuario de Debian GNU/Linux Sid (kernel 2.4.18-xfs-preempt-usagi)
                     email: kiwnix en yahoo punto es
           Grupo LinUPS - Presidencia --- http://www.linups.org
                Grupo de usuarios de SL/Linux de la UPSAM

--=-M3Kg877X1BSSDFwg/kvZ
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)

iD8DBQA9OLYVmWlcOUQvF6IRAiyQAJ4i3xC5pwSqdMj9OxMaNuGIv8Bw5QCgnv2M
phgxUudmxLlXp6+WsmhpnIE=
=B271
-----END PGP SIGNATURE-----

--=-M3Kg877X1BSSDFwg/kvZ--