[Mono-list] NUnit and gnunit problems

Pedro Santos pre@oninetspeed.pt
Thu, 08 Apr 2004 09:35:14 +0100


--=-Yejf2htnNcx1ETFsT44I
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable


Hi, I am playing around with NUnit in Mono and I have some problems. I
downloaded NUnit for Mono from the NUUnit home page. The first wierd
thing happens when I run NUnit tests:

//------------------------------------------------------------------------
bash-2.05b$ mono nunit-console.exe nunit.tests.dll

NUnit version 2.1.5
Copyright (C) 2002-2003 James W. Newkirk, Michael C. Two, Alexei A.
Vorontsov, Charlie Poole.
Copyright (C) 2000-2003 Philip Craig.
All Rights Reserved.
=20
OS Version: Unix 5.1.2600.0    Mono Version: 1.1.4322.573
=20
................F..F.F..................................................F.F=
.F............................F.F.F.F.F.F.F.F.F.F.F.................F......=
.........F.................F.F.F.F.F.F..F.F.............................F..=
GC Warning: Finalization cycle involving d659260
Segmentation fault
//------------------------------------------------------------------------

Then I tried a simple test program:

using System;
using NUnit.Framework;

[TestFixture]
public class TextF {
	[Test]
	public void buu()
	{
		Assert.IsTrue(true);
	}
};

Compiled:

bash-2.05b$ mcs a.cs -r:nunit.framework.dll -t:library
Compilation succeeded

But when I run it:

//----------------------------------------------------------------
bash-2.05b$ mono
../../downloads/www/nunit/NUnit-2.1.5/bin/nunit-console.exe a.dll

NUnit version 2.1.5
Copyright (C) 2002-2003 James W. Newkirk, Michael C. Two, Alexei A.
Vorontsov, C harlie Poole.
Copyright (C) 2000-2003 Philip Craig.
All Rights Reserved.
=20
OS Version: Unix 5.1.2600.0    Mono Version: 1.1.4322.573
=20
.
Tests run: 1, Failures: 0, Not run: 0, Time: 0.055477 seconds
=20
=20
=20
Unhandled Exception: System.NullReferenceException: A null value was
found where an object instance was required.
//---------------------------------------------------------------------

Then I tryed gnunit, I loaded the a.dll test assemlby, but I got a file
not found exception (note that the file exist):

System.IO.FileNotFoundException: File '/home/pre/tmp/unit-test/a.dll'
not found.
in (unmanaged) /usr/local/lib/libmono.so.0(mono_raise_exception+0x1c)
[0x4009333c]
in (unmanaged) /usr/local/lib/libmono.so.0 [0x400b6963]
in <0x0006c> (wrapper remoting-invoke-with-check)
System.AppDomain:LoadAssembly (string,System.Security.Policy.Evidence)
in <0x0006b> System.AppDomain:Load (string)
in <0x00058> (wrapper remoting-invoke-with-check) System.AppDomain:Load
(string)
in <0x0001d> System.Reflection.Assembly:Load (string)
in <0x0001f> Mono.NUnit.GUI.AssemblyStore:Load ()


Any ideias?

--=20
Pedro Santos <www.psantos.net>
"Si minor plus est ergo nihil sunt omnia..."

--=-Yejf2htnNcx1ETFsT44I
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQBAdQ7B00b8YfrkjegRAqzYAJ4rGmursvVw53vIXTulBA7c4ZDP+gCgnKvi
R9S3Hsk71Q/YWLm6PEMDAfI=
=RVlw
-----END PGP SIGNATURE-----

--=-Yejf2htnNcx1ETFsT44I--