[Mono-list] NUnit support for generics?

Andy Waddell awaddell at fnfr.com
Wed Sep 21 13:53:29 EDT 2005


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


More information about the Mono-list mailing list