[Mono-list] Problem with NUnit under Beta 2

Patrik Reali reali@acm.org
Mon, 14 Jun 2004 21:46:06 +0200


I'm porting the NUnit-based integration tests of IIOP.NET 
(http://www.iiop.net/) to mono, but nothing seems to work. I installed mono 
beta 2 in /usr/local.

My completely stripped down test is as follows:

using System;
using NUnit.Framework;

namespace IntegrationTests {

    public class Client {

        public void TDouble() {

Below is a test-run: no test is run and an exception follows. Am I the only 
one to experience this?

> mcs /t:library /r:/usr/local/lib/mono/1.0/nunit.framework.dll test.cs
> mono /usr/local/bin/nunit-console.exe  bin/ClientTest.dll
NUnit version 2.1.4
Copyright (C) 2002-2003 James W. Newkirk, Michael C. Two, Alexei A. 
Vorontsov, Charlie Poole.
Copyright (C) 2000-2003 Philip Craig.
All Rights Reserved.

Tests run: 0, Failures: 0, Not run: 0, Time: 0.023443 seconds

Unhandled Exception: System.NullReferenceException: Object reference not 
set to an instance of an object


Patrik Reali