[Mono-list] NUnit support for generics?

Kamil Skalski kamil.skalski at gmail.com
Wed Sep 21 14:04:26 EDT 2005


Then it works:

[nazgul at 107142207 testsuite]$ /home/morgul/programs/local/bin/gmcs
t.cs -r:/home/morgul/programs/local/lib/mono/1.0/nunit.framework.dll
-r:System.dll -target:library -out:t.dll
[nazgul at 107142207 testsuite]$
/home/morgul/programs/local/bin/nunit-console2 t.dll
NUnit version 2.2.0
Copyright (C) 2002-2003 James W. Newkirk, Michael C. Two, Alexei A.
Vorontsov, Charlie Poole.
Copyright (C) 2000-2003 Philip Craig.
All Rights Reserved.

OS Version: Unix 2.6.11.6    Mono Version: 2.0.50215.16

.Host name : mordor
IP address : 127.0.0.1


You need my patch (in fact, you need 2.0 version of nunit-console.exe)
in order to get it working. I am still thinking how to solve the
symlinks problem, which is preventing this patch from being ok to
commit.
Maybe we could crete nunit2.pc, which would allow obtaining the patch
to 1.0 nunit.*.dll (which are enough to make nunit-console2 work)

2005/9/21, Andy Waddell <awaddell at fnfr.com>:
> Ooops.  I forgot that I added an implementation GetHostEntry to my local
> build.  Just replace GetHostEntry with GetHostByName in my example and
> you will see the problem I'm talking about.
>
> --andy
>
> -----Original Message-----
> From: Kamil Skalski [mailto:kamil.skalski at gmail.com]
> Sent: Wednesday, September 21, 2005 10:15 AM
> To: Andy Waddell
> Cc: mono-list at lists.ximian.com
> Subject: Re: [Mono-list] NUnit support for generics?
>
> >
> > [awaddell at AWLNX GetHostByNameNUnitTest]$ mcs -target:library
> > -out:GetHostByNameNUnitTest.dll  -reference:nunit.framework Class1.cs
>
> Strange, I get
> t.cs(16,5): error CS0117: `System.Net.Dns' does not contain a
> definition for `GetHostEntry'
>
> and indeed there is no GetHostEntry in sources of System.Net
>
> >
> > Failures:
> > 1) GetHostByNameNUnitTest.Class1.TestDns :
> System.NullReferenceException
> > : Object reference not set to an instance of an object
> > in <0x00000> <unknown method>
> > in (wrapper managed-to-native) System.Net.Dns:GetHostByName_internal
> > (string,string&,string[]&,string[]&)
>
> Did you try my patch and run test using nunit-console2?
> --
> Kamil Skalski
> http://nazgul.omega.pl
>


--
Kamil Skalski
http://nazgul.omega.pl


More information about the Mono-list mailing list