Varga Zoltan wrote:

I tried measuring the coverage of the corlib unit tests, but the tests fail with
the following exception:

Unhandled Exception: System.NullReferenceException: A null
value was found where an object instance was required
in <0x000d3> 00 System.Reflection.AssemblyName:get_FullName ()
in <0x0001a> 00 System.Reflection.AssemblyName:ToString ()
in <0x0002e> 00 System.Reflection.Assembly:get_FullName ()
in <0x00032> 00
NUnit.Framework.TestDomain:MakeRemoteTestRunner
(System.IO.FileInfo,System.AppDomain)

It seems that the cultureInfo field of AssemblyName is not
set and that
is causing the exception. A simple test case is:

typeof(int).Assembly.FullName

Hi, I tried the following example and I did not get an exception. Is this similar to what you're doing?

using System;
class test
{
static public void Main()
{
Console.WriteLine("{0}",typeof(int).Assembly.FullName);
}
}

Building & running in linux I get:

japj@debian:~/sandbox$ mcs test.cs
Compilation succeeded
japj@debian:~/sandbox$ ./test.exe
mscorlib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
---
Jeroen


_______________________________________________
Mono-list maillist - [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Reply via email to