[Mono-list] NUnit support for generics?
Kamil Skalski
kamil.skalski at gmail.com
Thu Sep 15 12:51:34 EDT 2005
I had the same problem and created a patch some time ago:
http://lists.ximian.com/pipermail/mono-devel-list/2005-September/014598.html
Unfortunately there is some design issue I was not able to solve - we
would need to mark nunit dll with different version for 1.0 and 2.0
profiles in order to put it into GAC. Otherwise during installation
they are put into the same place and one version overwrites the other
(note that this is just a design issue, the nunit-console still works
with mixed version assemblies).
You can make nunit-console usable on 2.0 using one of the steps:
- delete nunit-console.exe.config files, compile your test dlls by
referencing exact path of 1.0 installed dlls
or
- apply my patch and watch it working
or
- just edit config file to use 2.0 first and reference exact patch of dlls
Anyone have idea how to make the issue solved in an elegant way and
ideally make the solution acceptable by nunit.org people?
2005/9/15, Andy Waddell <awaddell at fnfr.com>:
>
>
>
> I've been trying to use the nunit.framework and nunit_console.exe to do some
> unit testing on code that contains generics (and was therefore compile with
> gmcs). I'm getting the feeling that this is not supported. First off, I
> noticed that gmcs can't find the nunit assembly when
> –reference:nunit.framework is on the compile line (while mcs can). I forced
> the issue there by putting the fully qualified path to the dll on the
> compile line, but when I run nunit_console.exe to test some simple code
> (that happens to use generics), it always bombs out. I write my own main()
> to invoke the methods, it works fine.
>
>
>
> Can anyone shed some light on this issue?
>
>
>
> --andy
> _______________________________________________
> Mono-list maillist - Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>
>
--
Kamil Skalski
http://nazgul.omega.pl
More information about the Mono-list
mailing list