[Mono-list] Problem with NUnit

Giuseppe Greco gius.greco@bluewin.ch
Tue, 8 Jul 2003 17:00:11 +0200


>-- Original Message --
>Subject: RE: [Mono-list] Problem with NUnit
>From: "Philippe Lavoie" <philippe.lavoie@cactus.ca>
>To: "Giuseppe Greco" <gius.greco@bluewin.ch>,
>	<mono-list@lists.ximian.com>
>Date: Tue, 8 Jul 2003 10:42:11 -0400
>
>
>I had something similar happen to me once. My problem was that the
>runtime for nunit was using a different NUnit.Framework.DLL than the one
>I used to compile.
>
>Syncing those versions cleaned things up. For the curious, one version
>was compiled in .NET 1.1, the other in .NET 1.0.

Yes, but the one shipped with Mono should be OK, isn't it?
Should I run my unit tests with nunit-console.exe?

The problem is that I'm porting a .NET project to Linux,
and I'm not able to run my unit tests any more.

Gius_.


>
>Philippe Lavoie
>
> 
>
>   Cactus Commerce         eBusiness. All Business.
> Tel 819.778.0313 x302 * 888.CACTUS.0 * Fax 819.771.0921
>www.cactuscommerce.com philippe.lavoie@cactuscommerce.com
>
>
>-----Original Message-----
>From: Giuseppe Greco [mailto:gius.greco@bluewin.ch] 
>Sent: Monday, July 07, 2003 1:19 AM
>To: mono-list@lists.ximian.com
>Subject: [Mono-list] Problem with NUnit
>
>Hi all,
>
>I'm not able to get my test units running
>on Linux. They are correct (they do work
>with .NET on Windows); here's an example:
>
>namespace Gekkota.Core.Tests
>{
>  using Gekkota.Core;
>  using NUnit.Framework;
>
>  [TestFixture]
>  public class NetConverterTest
>  {
>    [Test]
>    public void SByteFieldToByteArray()
>    {
>      ...
>    }
>
>    [Test]
>    public void DoubleFieldToByteArray()
>    {
>      ...
>    }
>  }
>}
>
>When trying to execute my test units on Linux,
>I always get the following error message:
>
>NUnit 2.0 Error:
>build/gekkota-debug/bin/Gekkota.Core.Tests.dll has no TestFixtures
>
>... but my dll does contain TestFixtures.
>
>Any idea? Is there a work around?
>I'm using the very last version of mono/mcs from CVS.
>
>Thanks,
>
>Gius_.
>
>------------------------------
>Giuseppe Greco
>
>::agamura::
>
>Phone: +41 91 604 67 65
>Email: giuseppe.greco@agamura.com
>Web:   www.agamura.com
>
>_______________________________________________
>Mono-list maillist  -  Mono-list@lists.ximian.com
>http://lists.ximian.com/mailman/listinfo/mono-list
>_______________________________________________
>Mono-list maillist  -  Mono-list@lists.ximian.com
>http://lists.ximian.com/mailman/listinfo/mono-list