Re: [Mono-list] nunit

2014-07-27 Thread Timotheus Pokorra
Hello Andreas,
> i would like to use nunit from console. compiling sources with mcs and
> starting the test with nunit-console.
> but nunit.xxx.dll are in /lib/usr/monodevelop/AddIns/ only ?
MonoDevelop does not include the full NUnit, just some dlls.
But mono does include the nunit-console.exe: please check
/usr/lib/mono/2.0/nunit-console.exe or
/usr/lib/mono/2.0/nunit-console.exe.

> and i could not
> find out how to compile the sources using nunit.framwork.
You should include a reference to nunit.framework.dll in the source project.
nunit.framework should be part of the GAC, and listed in the
Monodevelop references dialog.

I hope this helps,
  Timotheus
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] nunit

2014-07-25 Thread andreas graeper
i would like to use nunit from console. compiling sources with mcs and
starting the test with nunit-console.
but nunit.xxx.dll are in /lib/usr/monodevelop/AddIns/ only ? and i could
not find out how to compile the sources using nunit.framwork.

thanks in adance
andreas
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] NUnit and app.config not found under mono

2012-09-24 Thread Dave Curylo
I've got a set of tests that I'm running with nunit-console. Those tests
require some configuration settings. When running under .NET on Windows,
I'm able to specify those configuration settings in the app.config file for
the unit test assembly and nunit-console.exe finds them. When running
nunit-console under mono, the configuration settings aren't found.

So for example, I have an assembly containing my NUnit test fixtures named
MyCompany.MyProduct.Tests.dll with settings in the app.config for that
project, which are copied into MyCompany.MyProduct.Tests.dll.config.  On
Windows, I run "nunit-console.exe MyCompany.MyProduct.Tests.dll" and it
runs the tests, finding the config settings.  On Linux (tried both Ubuntu
and CentOS) with Mono 2.10.8.1, when I run "mono nunit-console.exe
MyCompany.MyProduct.Tests.dll" the tests run as expected but the config
settings are not found.

Oddly enough, nunit under monodevelop seems to overcome this problem and
finds the config, so I'm not sure what's being done differently there. Is
anyone else able to get nunit tests to find their config files when running
under nunit-console?

Thanks,
Dave
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] nunit test upgrading task force

2009-06-22 Thread Atsushi Eno
Hi,

I'm thinking if we can upgrade our nunit tests to eliminate derivation
from Assertion (such as eliminating AssertEquals), to make our tests
ready for future versions of NUnit.

The task is very easy: if there is a test class that looks like

 [TestFixture]
 public class FooTest : Assertion
 {
 [Test]
 public void FooBar ()
 {
 AssertEquals ("#1", str1, str2);
 }
 }

rewrite it like:

 [TestFixture]
 public class FooTest
 {
 [Test]
 public void FooBar ()
 {
 Assert.AreEqual (str1, str2, "#1");
 }
 }

I tried to count it by "grep AssertEquals", and there were 8000 lines
in corlib, 1000 lines in System, 1500 lines in Sys.XML, and so on.

So, it is a simple but massive task that I cannot do it by myself.
But if we can hack a volunteer team from here it would be possible.

If you can join the effort, you are welcome :)

* list of the files

I have made an easy list of such "old" test files on a spreadsheet:
http://spreadsheets.google.com/pub?key=rkWl-ZQHJvcu6tkJOeFFg3A&output=html

* workflow

Basically, removing the base class (Assertion) will give lots of
errors. And when there is no more errors, then you are done with it.

You might want to mark your ownership on the spreadsheet before
you actually start working on them. I'll release the ownership
if some of them are "locking".

If you have commit access, let's just check in. Otherwise, post
your changes. (attachment, monoport, etc.)

One sort of concern is that, if you are actively maintaining some code
files and making changes in such old test files, please mark them as
you don't want them changed.
We don't have to do this conversion task perfectly right now. (And
of course you don't have to do upgrade task by yourself because of
marking them.)

* starting

If you are willing to join the task force, please drop me a line
and/or post to the list (here) :)

I'll share the spreadsheet so that you can edit the spreadsheet.
If you don't have Google account, I'll update it instead (with
possible delay).

Atsushi Eno
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] nunit-console2 and random segfaults

2009-01-03 Thread Tobi
Hi,

on a project with about 640 unit tests, nunit-console2 randomly fails and
exits with a stack trace. It's not predictable, at which test it will fail
and sometimes all test run fine. This happens on i386 as well as on amd64.

When running with -noshadow, I don't get this problem.

Has anyone experienced something similar?

Tobias

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Nunit hangs when testing a class using the GTK

2008-12-24 Thread Andrés G. Aragoneses

Gtk.Init* calls firstly GType.Init () ;)

Glad you got it working.

Andrés

Wolfgang Schulze-Zachau wrote:
> Thanks for the pointer, got me going in the right direction, much
> appreciated.
> However, the actual code that does the trick is this:
> 
>   [TestFixtureSetUp()]
>   public void SetUp() {
>   string[] args = {};
>   Gtk.Init.Check(ref args);
>   }
> 
> (just in case anybody else is looking for this)
> cheers
> Wolfgang
> 
> 
> knocte-2 wrote:
>>
>> Call GType.Init () in a [TestFixtureSetup] method.
>>
>>
> 
> 

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Nunit hangs when testing a class using the GTK

2008-12-23 Thread Wolfgang Schulze-Zachau

Thanks for the pointer, got me going in the right direction, much
appreciated.
However, the actual code that does the trick is this:

[TestFixtureSetUp()]
public void SetUp() {
string[] args = {};
Gtk.Init.Check(ref args);
}

(just in case anybody else is looking for this)
cheers
Wolfgang


knocte-2 wrote:
> 
> 
> Call GType.Init () in a [TestFixtureSetup] method.
> 
> 


-- 
View this message in context: 
http://www.nabble.com/Nunit-hangs-when-testing-a-class-using-the-GTK-tp21151720p21153943.html
Sent from the Mono - General mailing list archive at Nabble.com.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Nunit hangs when testing a class using the GTK

2008-12-23 Thread Andrés G. Aragoneses

Call GType.Init () in a [TestFixtureSetup] method.

Regards,

Andrés

Wolfgang Schulze-Zachau wrote:
> I might be a bit ignorant here, so please bear with me.
> I am running MonoDevelop 2 Alpha 2 on Fedora 9. In my project I use NUnit to
> do all sorts of testing. Today I added a test for a class that is supposed
> to create a popup menu on demand, which can then be displayed in a TreeView.
> Here is the class code so far:
> 
> 
> using System;
> using Gtk;
> 
> namespace Amino.ProCos
> {
>   
>   
>   public class RootProjectTreeNode
>   {
>   
>   public RootProjectTreeNode()
>   {
>   }
> 
>   public string DisplayName {
>   get { return "All Groups"; }
>   }
> 
>   public Menu getMenu() {
>   Menu menu = new Menu();
>   MenuItem expand, collapse, addgroup;
>   expand = new MenuItem("Expand");
>   collapse = new MenuItem("Collapse");
>   addgroup = new MenuItem("Add Project Group");
>   menu.Add(expand);
>   menu.Add(collapse);
>   menu.Add(addgroup);
>   return menu;
>   }
>   }
> }
> 
> And here is the relevant unit test code:
> 
> using System;
> using Gtk;
> using NUnit.Framework;
> using Amino.ProCos;
> 
> namespace Amino.testProCos
> {
>   
>   
>   [TestFixture()]
>   public class TestRootProjectNode
>   {
>   RootProjectTreeNode root;
>   
>   [Test()]
>   public void Instantiation()
>   {
>   root = new RootProjectTreeNode();
>   Assert.AreEqual("All Groups", root.DisplayName, 
> "Instantiation of a the
> root project tree node failed");
>   }
> 
>   [Test()]
>   public void BasicMenu() {
>   root = new RootProjectTreeNode();
>   Menu menu = root.getMenu();
>   Assert.IsTrue(true, "No idea");
>   MenuItem[] items = (MenuItem[])menu.Children;
>   Assert.AreEqual(3, items.Length, "menu should contain 3 
> elements");
>   Assert.AreEqual("Expand", items[0].Name, "First popup 
> menu item is not
> 'Expand'");
>   Assert.AreEqual("Collapse", items[1].Name, "Second 
> popup menu item is not
> 'Collapse'");
>   Assert.AreEqual("Add Project Group", items[3].Name, 
> "Third popup menu
> item is not 'Add Project Group'");
>   }
>   }
> }
> 
> The whole thing compiles without problem. When I run the tests, NUnit hangs.
> The only way out is to open a console and kill the NUnit process. The
> console window from which monodevelop is started, shows error messages such
> as this:
> 
> (/usr/local/lib/monodevelop/bin/mdhost.exe:15951): GLib-GObject-CRITICAL **:
> gtype.c:2248: initialization assertion failed, use IA__g_type_init() prior
> to this function
> 
> (/usr/local/lib/monodevelop/bin/mdhost.exe:15951): GLib-CRITICAL **:
> g_once_init_leave: assertion `initialization_value != 0' failed
> 
> (/usr/local/lib/monodevelop/bin/mdhost.exe:15951): GLib-GObject-CRITICAL **:
> gtype.c:2248: initialization assertion failed, use IA__g_type_init() prior
> to this function
> 
> (/usr/local/lib/monodevelop/bin/mdhost.exe:15951): GLib-GObject-CRITICAL **:
> gtype.c:2248: initialization assertion failed, use IA__g_type_init() prior
> to this function
> 
> (/usr/local/lib/monodevelop/bin/mdhost.exe:15951): GLib-GObject-CRITICAL **:
> gtype.c:2248: initialization assertion failed, use IA__g_type_init() prior
> to this function
> 
> (/usr/local/lib/monodevelop/bin/mdhost.exe:15951): GLib-GObject-CRITICAL **:
> g_type_add_interface_static: assertion `G_TYPE_IS_INSTANTIATABLE
> (instance_type)' failed
> 
> (/usr/local/lib/monodevelop/bin/mdhost.exe:15951): GLib-GObject-CRITICAL **:
> gtype.c:2248: initialization assertion failed, use IA__g_type_init() prior
> to this function
> 
> (/usr/local/lib/monodevelop/bin/mdhost.exe:15951): GLib-GObject-CRITICAL **:
> g_type_add_interface_static: assertion `G_TYPE_IS_INSTANTIATABLE
> (instance_type)' failed
> 
> (/usr/local/lib/monodevelop/bin/mdhost.exe:15951): GLib-GObject-CRITICAL **:
> gtype.c:2248: initialization assertion failed, use IA__g_type_init() prior
> to this function
> 
> (/usr/local/lib/monodevelop/bin/mdhost.exe:15951): GLib-GObject-CRITICAL **:
> gtype.c:2248: initialization assertion failed, use IA__g_type_init() prior
> to this function
> 
> (/usr/local/lib/monodevelop/bin/mdhost.exe:15951): GLib-GObject-CRITICAL **:
> g_type_add_interface_static: assertion `G_TYPE_IS_INSTANTIATABLE
> (instance_type)' failed
> 
> (/usr/local/lib/monodevelop/bin/mdhost.exe:15951): GLib-GObject-CRITICAL **:
> gtype.c:2248: initialization

[Mono-list] Nunit hangs when testing a class using the GTK

2008-12-23 Thread Wolfgang Schulze-Zachau

I might be a bit ignorant here, so please bear with me.
I am running MonoDevelop 2 Alpha 2 on Fedora 9. In my project I use NUnit to
do all sorts of testing. Today I added a test for a class that is supposed
to create a popup menu on demand, which can then be displayed in a TreeView.
Here is the class code so far:


using System;
using Gtk;

namespace Amino.ProCos
{


public class RootProjectTreeNode
{

public RootProjectTreeNode()
{
}

public string DisplayName {
get { return "All Groups"; }
}

public Menu getMenu() {
Menu menu = new Menu();
MenuItem expand, collapse, addgroup;
expand = new MenuItem("Expand");
collapse = new MenuItem("Collapse");
addgroup = new MenuItem("Add Project Group");
menu.Add(expand);
menu.Add(collapse);
menu.Add(addgroup);
return menu;
}
}
}

And here is the relevant unit test code:

using System;
using Gtk;
using NUnit.Framework;
using Amino.ProCos;

namespace Amino.testProCos
{


[TestFixture()]
public class TestRootProjectNode
{
RootProjectTreeNode root;

[Test()]
public void Instantiation()
{
root = new RootProjectTreeNode();
Assert.AreEqual("All Groups", root.DisplayName, 
"Instantiation of a the
root project tree node failed");
}

[Test()]
public void BasicMenu() {
root = new RootProjectTreeNode();
Menu menu = root.getMenu();
Assert.IsTrue(true, "No idea");
MenuItem[] items = (MenuItem[])menu.Children;
Assert.AreEqual(3, items.Length, "menu should contain 3 
elements");
Assert.AreEqual("Expand", items[0].Name, "First popup 
menu item is not
'Expand'");
Assert.AreEqual("Collapse", items[1].Name, "Second 
popup menu item is not
'Collapse'");
Assert.AreEqual("Add Project Group", items[3].Name, 
"Third popup menu
item is not 'Add Project Group'");
}
}
}

The whole thing compiles without problem. When I run the tests, NUnit hangs.
The only way out is to open a console and kill the NUnit process. The
console window from which monodevelop is started, shows error messages such
as this:

(/usr/local/lib/monodevelop/bin/mdhost.exe:15951): GLib-GObject-CRITICAL **:
gtype.c:2248: initialization assertion failed, use IA__g_type_init() prior
to this function

(/usr/local/lib/monodevelop/bin/mdhost.exe:15951): GLib-CRITICAL **:
g_once_init_leave: assertion `initialization_value != 0' failed

(/usr/local/lib/monodevelop/bin/mdhost.exe:15951): GLib-GObject-CRITICAL **:
gtype.c:2248: initialization assertion failed, use IA__g_type_init() prior
to this function

(/usr/local/lib/monodevelop/bin/mdhost.exe:15951): GLib-GObject-CRITICAL **:
gtype.c:2248: initialization assertion failed, use IA__g_type_init() prior
to this function

(/usr/local/lib/monodevelop/bin/mdhost.exe:15951): GLib-GObject-CRITICAL **:
gtype.c:2248: initialization assertion failed, use IA__g_type_init() prior
to this function

(/usr/local/lib/monodevelop/bin/mdhost.exe:15951): GLib-GObject-CRITICAL **:
g_type_add_interface_static: assertion `G_TYPE_IS_INSTANTIATABLE
(instance_type)' failed

(/usr/local/lib/monodevelop/bin/mdhost.exe:15951): GLib-GObject-CRITICAL **:
gtype.c:2248: initialization assertion failed, use IA__g_type_init() prior
to this function

(/usr/local/lib/monodevelop/bin/mdhost.exe:15951): GLib-GObject-CRITICAL **:
g_type_add_interface_static: assertion `G_TYPE_IS_INSTANTIATABLE
(instance_type)' failed

(/usr/local/lib/monodevelop/bin/mdhost.exe:15951): GLib-GObject-CRITICAL **:
gtype.c:2248: initialization assertion failed, use IA__g_type_init() prior
to this function

(/usr/local/lib/monodevelop/bin/mdhost.exe:15951): GLib-GObject-CRITICAL **:
gtype.c:2248: initialization assertion failed, use IA__g_type_init() prior
to this function

(/usr/local/lib/monodevelop/bin/mdhost.exe:15951): GLib-GObject-CRITICAL **:
g_type_add_interface_static: assertion `G_TYPE_IS_INSTANTIATABLE
(instance_type)' failed

(/usr/local/lib/monodevelop/bin/mdhost.exe:15951): GLib-GObject-CRITICAL **:
gtype.c:2248: initialization assertion failed, use IA__g_type_init() prior
to this function

(/usr/local/lib/monodevelop/bin/mdhost.exe:15951): GLib-CRITICAL **:
g_once_init_leave: assertion `initialization_value != 0' failed

(/usr/local/lib/monodevelop/bin/mdhost.exe:15951): GLib-GObject-CRITICAL **:
gtype.c

Re: [Mono-list] NUnit Version - Upgrade soon?

2008-11-25 Thread Miguel De Icaza

Hello,
Is it ok to submit patches to mono that depend on the latest version  
of NUnit?


As long as the resulting code *builds* you can.

So I think this means "no".

Miguel.



Michael

On Tue, Nov 18, 2008 at 3:25 PM, Miguel de Icaza <[EMAIL PROTECTED]>  
wrote:

Hello,

> What changes to NUnit were specific to Mono?
>
> Is there a list of these features?

You are confused;   There are no changes, you should just not depend  
on

Mono's built-in and private copy of NUnit to write your NUnit test
cases.

You should get the latest NUnit.

> On Sun, Nov 16, 2008 at 10:54 PM, Miguel de Icaza  
<[EMAIL PROTECTED]>

> wrote:
> Hello,
>
>
> > I use NUnit for work and have been using the latest  
version

> for
> > months.  I wrote some test for Mono and found out that the
> version
> > that Mono is using does not support some of the asserts  
I am

> using
> > (IsEmpty).  Is there any plan to upgrade the version of
> NUnit that is
> > used with the Mono build/test?
>
>
> The NUnit that ships with Mono should be considered Mono's  
own

> copy of
> NUnit and not a public version of it.
>
> We should probably make packages of the latest version of
> NUnit,
> encourage the NUnit developer to maintain those and  
encourage

> developers
> to use the public NUnit as opposed to the private copy that
> Mono ships.
>
>




___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] NUnit Version - Upgrade soon?

2008-11-25 Thread Atsushi Eno
Actually it turned out to be my bogus Makefile that assumed
nunit-console-runner.dll is nunit-console.dll, which was conflicting
nunit-console.exe and hence type loading failure happened (and turned
out that it should fail since foo.dll and foo.exe cannot coexist).

Now I have a fixed version of nunit for our own use:
http://veritas-vos-liberabit.com/tmp/2008/nunit24-mono.tar.bz2

If no problem, I'll checkin this new nunit24 directory and build
changes, without removing nunit20 for a while.

Atsushi Eno

> It is anything but negative approach. As I wrote earlier, I believe this
> is a mono bug that likely hits other projects and should be fixed in
> mono land.
> 
> I'll try to cook a repro and file a bug.
> 
> For the record, there is almost no change in NUnit code in my archive.
> We just have to change AssemblyInfo (assembly key location), remove
> tests (they are extra in our source tree) and extra stuff such as GUI.
> It is straightforward upstream code. Believe or not, just diff them ;)
> 
> Atsushi Eno
> 
> 
> Charlie Poole wrote:
>> I think a more positive approach would be to
>> work with the NUnit project so that you can
>> just use the upstream code.
>>
>> Charlie
>>
>>> -Original Message-
>>> From: [EMAIL PROTECTED] 
>>> [mailto:[EMAIL PROTECTED] On Behalf Of Atsushi Eno
>>> Sent: Saturday, November 22, 2008 4:30 PM
>>> To: mono-list@lists.ximian.com
>>> Subject: SPAM-LOW: Re: [Mono-list] NUnit Version - Upgrade soon?
>>>
>>> You almost do not have to do that:
>>> http://veritas-vos-liberabit.com/tmp/2008/nunit24-mono.tar.bz2
>>>
>>> It builds but does not work anyways right now, probably 
>>> because of some type resolution bugs between 
>>> nunit-console.dll and nunit-console.exe.
>>>
>>> If you have patch for mono (diff in mono/mcs, not diff in 
>>> nunit) to fix any issues, that is welcome.
>>>
>>> Atsushi Eno
>>>
>>>
>>> Michael Franz wrote:
>>>> OK,
>>>>
>>>> I thought I read somewhere that there were patches to NUnit 
>>> that were 
>>>> mono specific.
>>>>
>>>> Is it ok to submit patches to mono that depend on the 
>>> latest version 
>>>> of NUnit?
>>>>
>>>> Michael
>>>>
>>>> On Tue, Nov 18, 2008 at 3:25 PM, Miguel de Icaza <[EMAIL PROTECTED] 
>>>> <mailto:[EMAIL PROTECTED]>> wrote:
>>>>
>>>> Hello,
>>>>
>>>>  > What changes to NUnit were specific to Mono?
>>>>  >
>>>>  > Is there a list of these features?
>>>>
>>>> You are confused;   There are no changes, you should 
>>> just not depend on
>>>> Mono's built-in and private copy of NUnit to write your 
>>> NUnit test
>>>> cases.
>>>>
>>>> You should get the latest NUnit.
>>>>
>>>>  > On Sun, Nov 16, 2008 at 10:54 PM, Miguel de Icaza
>>>> <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>
>>>>  > wrote:
>>>>  > Hello,
>>>>  >
>>>>  >
>>>>  > > I use NUnit for work and have been using 
>>> the latest version
>>>>  > for
>>>>  > > months.  I wrote some test for Mono and 
>>> found out that the
>>>>  > version
>>>>  > > that Mono is using does not support some 
>>> of the asserts
>>>> I am
>>>>  > using
>>>>  > > (IsEmpty).  Is there any plan to upgrade 
>>> the version of
>>>>  > NUnit that is
>>>>  > > used with the Mono build/test?
>>>>  >
>>>>  >
>>>>  > The NUnit that ships with Mono should be considered
>>>> Mono's own
>>>>  > copy of
>>>>  > NUnit and not a public version of it.
>>>>  >
>>>>  > We should probably make packages of the 
>>> latest version of
>>>>  > NUnit,
>>>>  > encourage the NUnit developer to maintain 
>>> those and encourage
>>>>  > developers
>>>>  > to use the public NUnit as opposed to the 
&g

Re: [Mono-list] NUnit Version - Upgrade soon?

2008-11-22 Thread Atsushi Eno
You almost do not have to do that:
http://veritas-vos-liberabit.com/tmp/2008/nunit24-mono.tar.bz2

It builds but does not work anyways right now, probably because of some 
type resolution bugs between nunit-console.dll and nunit-console.exe.

If you have patch for mono (diff in mono/mcs, not diff in nunit) to fix 
any issues, that is welcome.

Atsushi Eno


Michael Franz wrote:
> OK,
> 
> I thought I read somewhere that there were patches to NUnit that were 
> mono specific.
> 
> Is it ok to submit patches to mono that depend on the latest version of 
> NUnit?
> 
> Michael
> 
> On Tue, Nov 18, 2008 at 3:25 PM, Miguel de Icaza <[EMAIL PROTECTED] 
> > wrote:
> 
> Hello,
> 
>  > What changes to NUnit were specific to Mono?
>  >
>  > Is there a list of these features?
> 
> You are confused;   There are no changes, you should just not depend on
> Mono's built-in and private copy of NUnit to write your NUnit test
> cases.
> 
> You should get the latest NUnit.
> 
>  > On Sun, Nov 16, 2008 at 10:54 PM, Miguel de Icaza
> <[EMAIL PROTECTED] >
>  > wrote:
>  > Hello,
>  >
>  >
>  > > I use NUnit for work and have been using the latest version
>  > for
>  > > months.  I wrote some test for Mono and found out that the
>  > version
>  > > that Mono is using does not support some of the asserts
> I am
>  > using
>  > > (IsEmpty).  Is there any plan to upgrade the version of
>  > NUnit that is
>  > > used with the Mono build/test?
>  >
>  >
>  > The NUnit that ships with Mono should be considered
> Mono's own
>  > copy of
>  > NUnit and not a public version of it.
>  >
>  > We should probably make packages of the latest version of
>  > NUnit,
>  > encourage the NUnit developer to maintain those and encourage
>  > developers
>  > to use the public NUnit as opposed to the private copy that
>  > Mono ships.
>  >
>  >
> 
> 
> 
> 
> 
> ___
> 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


Re: [Mono-list] NUnit Version - Upgrade soon?

2008-11-22 Thread Michael Franz
OK,

I thought I read somewhere that there were patches to NUnit that were mono
specific.

Is it ok to submit patches to mono that depend on the latest version of
NUnit?

Michael

On Tue, Nov 18, 2008 at 3:25 PM, Miguel de Icaza <[EMAIL PROTECTED]> wrote:

> Hello,
>
> > What changes to NUnit were specific to Mono?
> >
> > Is there a list of these features?
>
> You are confused;   There are no changes, you should just not depend on
> Mono's built-in and private copy of NUnit to write your NUnit test
> cases.
>
> You should get the latest NUnit.
>
> > On Sun, Nov 16, 2008 at 10:54 PM, Miguel de Icaza <[EMAIL PROTECTED]>
> > wrote:
> > Hello,
> >
> >
> > > I use NUnit for work and have been using the latest version
> > for
> > > months.  I wrote some test for Mono and found out that the
> > version
> > > that Mono is using does not support some of the asserts I am
> > using
> > > (IsEmpty).  Is there any plan to upgrade the version of
> > NUnit that is
> > > used with the Mono build/test?
> >
> >
> > The NUnit that ships with Mono should be considered Mono's own
> > copy of
> > NUnit and not a public version of it.
> >
> > We should probably make packages of the latest version of
> > NUnit,
> > encourage the NUnit developer to maintain those and encourage
> > developers
> > to use the public NUnit as opposed to the private copy that
> > Mono ships.
> >
> >
>
>
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] NUnit Version - Upgrade soon?

2008-11-18 Thread Miguel de Icaza
Hello,

> What changes to NUnit were specific to Mono?
> 
> Is there a list of these features?

You are confused;   There are no changes, you should just not depend on
Mono's built-in and private copy of NUnit to write your NUnit test
cases.

You should get the latest NUnit.

> On Sun, Nov 16, 2008 at 10:54 PM, Miguel de Icaza <[EMAIL PROTECTED]>
> wrote:
> Hello,
> 
> 
> > I use NUnit for work and have been using the latest version
> for
> > months.  I wrote some test for Mono and found out that the
> version
> > that Mono is using does not support some of the asserts I am
> using
> > (IsEmpty).  Is there any plan to upgrade the version of
> NUnit that is
> > used with the Mono build/test?
> 
> 
> The NUnit that ships with Mono should be considered Mono's own
> copy of
> NUnit and not a public version of it.
> 
> We should probably make packages of the latest version of
> NUnit,
> encourage the NUnit developer to maintain those and encourage
> developers
> to use the public NUnit as opposed to the private copy that
> Mono ships.
> 
> 

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] NUnit Version - Upgrade soon?

2008-11-17 Thread Michael Franz
What changes to NUnit were specific to Mono?

Is there a list of these features?

On Sun, Nov 16, 2008 at 10:54 PM, Miguel de Icaza <[EMAIL PROTECTED]> wrote:

> Hello,
>
> > I use NUnit for work and have been using the latest version for
> > months.  I wrote some test for Mono and found out that the version
> > that Mono is using does not support some of the asserts I am using
> > (IsEmpty).  Is there any plan to upgrade the version of NUnit that is
> > used with the Mono build/test?
>
> The NUnit that ships with Mono should be considered Mono's own copy of
> NUnit and not a public version of it.
>
> We should probably make packages of the latest version of NUnit,
> encourage the NUnit developer to maintain those and encourage developers
> to use the public NUnit as opposed to the private copy that Mono ships.
>
>
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] NUnit Version - Upgrade soon?

2008-11-16 Thread Miguel de Icaza
Hello,

> I use NUnit for work and have been using the latest version for
> months.  I wrote some test for Mono and found out that the version
> that Mono is using does not support some of the asserts I am using
> (IsEmpty).  Is there any plan to upgrade the version of NUnit that is
> used with the Mono build/test?

The NUnit that ships with Mono should be considered Mono's own copy of
NUnit and not a public version of it.

We should probably make packages of the latest version of NUnit,
encourage the NUnit developer to maintain those and encourage developers
to use the public NUnit as opposed to the private copy that Mono ships.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] NUnit Version - Upgrade soon?

2008-11-15 Thread Michael Franz
Hi,

I use NUnit for work and have been using the latest version for months.  I
wrote some test for Mono and found out that the version that Mono is using
does not support some of the asserts I am using (IsEmpty).  Is there any
plan to upgrade the version of NUnit that is used with the Mono build/test?

Thanks

Michael
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] NUnit Tests for ToolLocationHelper

2008-11-11 Thread Michael Franz
Hi,

Here are two tests for ToolLocationHelper.  I would have written tests for
the entire class but I have not been able to figure out what the results
should be.

I have also attached the patches to that will allow ToolLocationHelper to
pass the tests and adding the class to the build tests.

Let me know if I did not create these correctly.

Thanks
Michael


ToolLocationHelperTest.cs
Description: Binary data


ToolLocationHelper.patch
Description: Binary data


sources.patch
Description: Binary data
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] NUnit examples, Mono1.9.1, no suitable entry point error

2008-08-23 Thread Chris Howie
On Sun, Aug 24, 2008 at 12:18 AM, Alan McGovern <[EMAIL PROTECTED]> wrote:
> To get rid of the compile error, just compile the .cs files as a library. I
> think the syntax is: --target:library

"-target:library" in fact.

-- 
Chris Howie
http://www.chrishowie.com
http://en.wikipedia.org/wiki/User:Crazycomputers
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] NUnit examples, Mono1.9.1, no suitable entry point error

2008-08-23 Thread Alan McGovern
To get rid of the compile error, just compile the .cs files as a library. I
think the syntax is: --target:library

Alan.

On 8/24/08, Charlie Poole <[EMAIL PROTECTED]> wrote:
>
> When you run your program, it does exactly what you
> told it to do, i.e. { } :-)
>
> To run NUnit tests, you execute NUnit, not the tests.
> You can run
>   nunit-console mytests.dll
>   nunit mytests.dll
> OR nunit and then open the test assembly from the menu.
>
> Charlie
>
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of cknell
> > Sent: Tuesday, August 19, 2008 12:46 PM
> > To: mono-list@lists.ximian.com
> > Subject: [Mono-list] NUnit examples, Mono1.9.1, no suitable
> > entry point error
> >
> >
> > I've recently downloaded Mono 1.9.1 and NUnit 2.4.8. I have a
> > number of examples of basic unit tests collected from a
> > variety of sources. That's what you do when the one you have
> > won't work, you look for another. When compiling the
> > examples, I invariably get an error from Mono:
> >
> > "error CS5001: Program 'fill in the blank' does not contain a
> > static 'Main'
> > method suitable for an entry point"
> >
> > Now, as a sometime Java programmer, I have a superficial
> > understanding of the message. If I insert a line like this:
> >
> > public static void Main(){}
> >
> > the program compiles. But when I run the compiled program, I
> > get neither an error, nor the expected response. I surmise
> > that is because when I run the program, the Main() method is
> > being called and the actual method I want to run is being ignored.
> >
> > Can anyone give me guidance on this?
> >
> > Thanks.
> > --
> > View this message in context:
> > http://www.nabble.com/NUnit-examples%2C-Mono1.9.1%2C-no-suitab
> > le-entry-point-error-tp19057246p19057246.html
> > Sent from the Mono - General mailing list archive at Nabble.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
>
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] NUnit examples, Mono1.9.1, no suitable entry point error

2008-08-23 Thread Charlie Poole
When you run your program, it does exactly what you
told it to do, i.e. { } :-) 

To run NUnit tests, you execute NUnit, not the tests.
You can run
   nunit-console mytests.dll
   nunit mytests.dll
OR nunit and then open the test assembly from the menu.

Charlie

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of cknell
> Sent: Tuesday, August 19, 2008 12:46 PM
> To: mono-list@lists.ximian.com
> Subject: [Mono-list] NUnit examples, Mono1.9.1, no suitable 
> entry point error
> 
> 
> I've recently downloaded Mono 1.9.1 and NUnit 2.4.8. I have a 
> number of examples of basic unit tests collected from a 
> variety of sources. That's what you do when the one you have 
> won't work, you look for another. When compiling the 
> examples, I invariably get an error from Mono:
> 
> "error CS5001: Program 'fill in the blank' does not contain a 
> static 'Main'
> method suitable for an entry point"
> 
> Now, as a sometime Java programmer, I have a superficial 
> understanding of the message. If I insert a line like this: 
> 
> public static void Main(){}
> 
> the program compiles. But when I run the compiled program, I 
> get neither an error, nor the expected response. I surmise 
> that is because when I run the program, the Main() method is 
> being called and the actual method I want to run is being ignored.
> 
> Can anyone give me guidance on this?
> 
> Thanks.
> --
> View this message in context: 
> http://www.nabble.com/NUnit-examples%2C-Mono1.9.1%2C-no-suitab
> le-entry-point-error-tp19057246p19057246.html
> Sent from the Mono - General mailing list archive at Nabble.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


[Mono-list] NUnit examples, Mono1.9.1, no suitable entry point error

2008-08-23 Thread cknell

I've recently downloaded Mono 1.9.1 and NUnit 2.4.8. I have a number of
examples of basic unit tests collected from a variety of sources. That's
what you do when the one you have won't work, you look for another. When
compiling the examples, I invariably get an error from Mono:

"error CS5001: Program 'fill in the blank' does not contain a static 'Main'
method suitable for an entry point"

Now, as a sometime Java programmer, I have a superficial understanding of
the message. If I insert a line like this: 

public static void Main(){}

the program compiles. But when I run the compiled program, I get neither an
error, nor the expected response. I surmise that is because when I run the
program, the Main() method is being called and the actual method I want to
run is being ignored.

Can anyone give me guidance on this?

Thanks.
-- 
View this message in context: 
http://www.nabble.com/NUnit-examples%2C-Mono1.9.1%2C-no-suitable-entry-point-error-tp19057246p19057246.html
Sent from the Mono - General mailing list archive at Nabble.com.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] nunit and monodevelop?

2008-01-19 Thread Chris Howie
On Jan 19, 2008 6:12 PM, Ross Manges <[EMAIL PROTECTED]> wrote:
> Terribly sorry if this has already been discussed at length... but I've been
> developing with java/eclipse/junit, and I'm trying to get started with
> monodevelop in ubuntu. For the life of me, I cannot figure out how to
> actually run the nunit tests in monodevelop. Also, I'm not sure if the nunit
> test class should be added to the "project solution" or not. I do believe I
> have the nunit plugin, as I was able to get monodevelop to generate a nunit
> test class template that looks a lot like the junit test classes that I'm
> accustomed to seeing. I just can't figure out how to run it! Feel free to
> say RTFM and point me to the relevant documentation. I've already looked at
> the monodevelop page, and nunit.org page, and searched google without much
> luck.

View > Unit Tests.  Then use the pad that opens to run the tests.

-- 
Chris Howie
http://www.chrishowie.com
http://en.wikipedia.org/wiki/User:Crazycomputers
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] nunit and monodevelop?

2008-01-19 Thread Ross Manges
Terribly sorry if this has already been discussed at length... but I've been
developing with java/eclipse/junit, and I'm trying to get started with
monodevelop in ubuntu. For the life of me, I cannot figure out how to
actually run the nunit tests in monodevelop. Also, I'm not sure if the nunit
test class should be added to the "project solution" or not. I do believe I
have the nunit plugin, as I was able to get monodevelop to generate a nunit
test class template that looks a lot like the junit test classes that I'm
accustomed to seeing. I just can't figure out how to run it! Feel free to
say RTFM and point me to the relevant documentation. I've already looked at
the monodevelop page, and nunit.org page, and searched google without much
luck.

Thanks!
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] NUnit cant be found

2007-11-11 Thread David Brown
On Sun, Nov 11, 2007 at 08:31:25PM +0100, Søren Juul wrote:

>I'm trying to get NUnit working, but i cannot find the necessary dll's to
>compile the nunit test-file. I'm using ubuntu and have installed nunit and
>nunit-console.
>I am using the NUit quick start code (
>http://www.nunit.org/index.php?p=quickStart&r=2.4.3).

Not sure about paths on Ubuntu, but, in order to build with gmcs, I needed
to add
-r:/usr/lib/mono/1.0/nunit.framework.dll

I still use nunit-console2 to run it.

David
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] NUnit cant be found

2007-11-11 Thread Søren Juul
Hi

I'm trying to get NUnit working, but i cannot find the necessary dll's to
compile the nunit test-file. I'm using ubuntu and have installed nunit and
nunit-console.
I am using the NUit quick start code (
http://www.nunit.org/index.php?p=quickStart&r=2.4.3).

Thanks in advance

-- 
Med venlig hilsen / Kind Regards
Søren Juul
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] nunit issue that I'm having

2007-11-08 Thread Martin Trejo
Hi,

I've used the -pkg option to include mono-nunit package definition. It
should go like this

mcs -pkg:mono-nunit

In NAnt scripts use as follows:







2007/11/2, Michael Masters <[EMAIL PROTECTED]>:
>
> This is the version of mono that I'm using:
>
> mono --version
> Mono JIT compiler version 1.2.5.1 (tarball)
> Copyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com
> TLS:   normal
> GC:Included Boehm (with typed GC)
> SIGSEGV:   normal
> Architecture:  x86
> Disabled:  none
>
> I'm trying to compile an nUnit example, but I can't compile it unless I
> download nunit and tell mcs where the nunit framework is. I'm using mono
> on MacOSX. I have nunit-console installed, but mcs can't find the dll. I
> thought nUnit came with mono, so I'm not sure what's wrong. Does anyone
> have any suggestions? I'm really new to mono, so I just want to make
> sure I'm doing anything wrong.
>
>
> -Michael Masters
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>


Saludos,

Martín Trejo Chávez
http://chilli-coder.blogspot.com
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] nunit issue that I'm having

2007-11-02 Thread Michael Masters
This is the version of mono that I'm using:

mono --version
Mono JIT compiler version 1.2.5.1 (tarball)
Copyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com
TLS:   normal
GC:Included Boehm (with typed GC)
SIGSEGV:   normal
Architecture:  x86
Disabled:  none

I'm trying to compile an nUnit example, but I can't compile it unless I 
download nunit and tell mcs where the nunit framework is. I'm using mono 
on MacOSX. I have nunit-console installed, but mcs can't find the dll. I 
thought nUnit came with mono, so I'm not sure what's wrong. Does anyone 
have any suggestions? I'm really new to mono, so I just want to make 
sure I'm doing anything wrong.


-Michael Masters
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] nunit, nhibernate, castle project , and CodeSmith

2007-07-15 Thread 'josh coffman'


MonoDevelop is good. I would like to know about tools like nhibernate, Castle project, and code generators with mono.

monodevelop es bueno. Quisiera saber sobre las herramientas como nhibernate,
castle project, y los generadores de código con mono. [translation via google]

muchos gracias

josh

>> Original Message 
>>From:"José A. Salvador Vanaclocha" 
>>To:"josh coffman" 
>>Subject:Re: [Mono-list] nunit, nhibernate, castle project, and CodeSmith
>>Date:Tue, 10 Jul 2007 21:50:59 +0200
>>
>
>
>>Do you meet Monodevelop??
>
>>It's a effort from Lluis Sanchez to get an IDE working at gnome desktop.
>
>>Try it!!
>
>>http://www.monodevelop.com/Main_Page
>
>>Best regards.
>
>>2007/7/10, josh coffman :
>
>
>>> I'm starting a couple projects that I'd be interested in using
>>> Mono/mysql/linux on. I'm a .Net dev and pretty new to mono. I'm
>>> trying to figure out what productivity tools and frameworks I can use
>>on
>>> Mono.
>
>
>
>>> I know nUnit in command line works, but I prefere the gui runner. Also,
>>> I'm not sure how to get started with an ASP.Net project on MONO other
>>> than writing the files a text editor. Which I can do, but then I don't
>>> know about compiling an ASP.Net project on mono.
>
>
>
>>> Could anyone make some suggestions for me? I'd like to use stuff like
>>> ActiveRecord, code gen, nhibernate, and nunit-gui. Does any of it work?
>>> partially implemented?
>
>
>
>>> Any suggestions on writing an ASP.Net site on MONO, and use Test-driven
>>> practises on MONO?
>
>
>
>>> Thanks
>
>>> -j
>
>>> ___
>>> Mono-list maillist  -  Mono-list@lists.ximian.com
>>> http://lists.ximian.com/mailman/listinfo/mono-list
>
>
>
>
>>-- 
>>José A. Salvador Vanaclocha "Vana"
>>Numenalia
>
>>"La inspiración existe, pero tiene que encontrarte trabajando"
>>- Pablo Ruiz Picasso -
>
>>PD: Si te he mandado algun documento que tu Micro$oft Word es INCAPAZ
>>de abrir, hazte un favor y trabaja con un programa decente:
>
>>http://es.openoffice.org/
>
>
>
>

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] nunit, nhibernate, castle project, and CodeSmith

2007-07-10 Thread Jonathan Pobst
I just tested NUnit 2.4.1 GUI on Mono 2.0 SVN and it works.  I am pretty 
sure we got it working in time for Mono 1.2.4.  If not, grab a SVN copy 
of Mono or wait about a month for Mono 1.2.5.

Jon

'josh coffman' wrote:
> Sounds like castle project works with Mono. good. but no nunit 2.4.x 
> gui.. rats!
> 
> However, I would be happy getting feedback from cruisecontrol.
> 
> Any one have any suggestions for code gen or refactoring tools?
> 
> I'm used to using Resharper and CodeSmith, but am new to nhibernate.
> 
> I've always written data access code or generated it; never used ORM before.
> 
> danke.
> 
> thanks.
> 
> gracias.
> 
> -j
> 
>  >> Original Message 
> 
>  >>From:Mads Bondo Dydensborg
> 
>  >>To:mono-list@lists.ximian.com, "'josh coffman'"
> 
>  >>Subject:Re: [Mono-list] nunit, nhibernate, castle project, and CodeSmith
> 
>  >>Date:Tue, 10 Jul 2007 23:16:58 +0200
> 
>  >>
> 
>  >
> 
>  >
> 
>  >>tirsdag 10 juli 2007 21:14 skrev 'josh coffman':
> 
>  >
> 
>  >>> I know nUnit in command line works, but I prefere the gui runner.
> 
>  >
> 
>  >>nunit 2.4.0 does not appear to work with current mono, unfortunately.
> 
>  >
> 
>  >>Personally I have no problem with running the console - or just let
> 
>  >>CruiseControl run it.
> 
>  >
> 
>  >>Regards,
> 
>  >
> 
>  >>Mads
> 
>  >
> 
>  >>--
> 
>  >>Med venlig hilsen/Regards
> 
>  >
> 
>  >>Systemudvikler/Systemsdeveloper cand.scient.dat, Ph.d., Mads Bondo 
> Dydensborg
> 
>  >>Dansk BiblioteksCenter A/S, Tempovej 7-11, 2750 Ballerup, Tlf. +45 44
> 
>  >86
> 
>  >>77 34
> 
>  >
> 
>  >
> 
>  >
> 
>  >
> 
> 
> 
> 
> 
> ___
> 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


Re: [Mono-list] nunit, nhibernate, castle project , and CodeSmith

2007-07-10 Thread 'josh coffman'


Sounds like castle project works with Mono. good. but no nunit 2.4.x gui.. rats!
However, I would be happy getting feedback from cruisecontrol. 

Any one have any suggestions for code gen or refactoring tools?
I'm used to using Resharper and CodeSmith, but am new to nhibernate.
I've always written data access code or generated it; never used ORM before.

danke.
thanks.
gracias.

-j

>> Original Message 
>>From:Mads Bondo Dydensborg 
>>To:mono-list@lists.ximian.com,  "'josh coffman'" 
>>Subject:Re: [Mono-list] nunit, nhibernate, castle project, and CodeSmith
>>Date:Tue, 10 Jul 2007 23:16:58 +0200
>>
>
>
>>tirsdag 10 juli 2007 21:14 skrev 'josh coffman':
>
>>> I know nUnit in command line works, but I prefere the gui runner. 
>
>>nunit 2.4.0 does not appear to work with current mono, unfortunately.
>
>>Personally I have no problem with running the console - or just let 
>>CruiseControl run it.
>
>>Regards,
>
>>Mads
>
>>-- 
>>Med venlig hilsen/Regards
>
>>Systemudvikler/Systemsdeveloper cand.scient.dat, Ph.d., Mads Bondo Dydensborg
>>Dansk BiblioteksCenter A/S, Tempovej 7-11, 2750 Ballerup, Tlf. +45 44
>86
>>77 34
>
>
>
>

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] nunit, nhibernate, castle project, and CodeSmith

2007-07-10 Thread Mads Bondo Dydensborg
tirsdag 10 juli 2007 21:14 skrev 'josh coffman':

> I know nUnit in command line works, but I prefere the gui runner. 

nunit 2.4.0 does not appear to work with current mono, unfortunately.

Personally I have no problem with running the console - or just let 
CruiseControl run it.

Regards,

Mads

-- 
Med venlig hilsen/Regards

Systemudvikler/Systemsdeveloper cand.scient.dat, Ph.d., Mads Bondo Dydensborg
Dansk BiblioteksCenter A/S, Tempovej 7-11, 2750 Ballerup, Tlf. +45 44 86 77 34
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] nunit, nhibernate, castle project, and CodeSmith

2007-07-10 Thread Dario Quintana
Hey,

My experience with castle in this project it's good:
http://code.google.com/p/monosms/
I'm using Windsor Container for do IoC and it works fine.

Regards.

> I'm starting a couple projects that I'd be interested in using
> Mono/mysql/linux on. I'm a .Net dev and pretty new to mono. I'm
> trying to figure out what productivity tools and frameworks I can use on
> Mono.

-- 
Dario Quintana
http://blog.darioquintana.com.ar
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] nunit, nhibernate, castle project , and CodeSmith

2007-07-10 Thread 'josh coffman'

I'm starting a couple projects that I'd be interested in using Mono/mysql/linux on. I'm a .Net dev and pretty new to mono. I'm trying to figure out what productivity tools and frameworks I can use on Mono.

I know nUnit in command line works, but I prefere the gui runner. Also, I'm not sure how to get started with an ASP.Net project on MONO other than writing the files a text editor. Which I can do, but then I don't know about compiling an ASP.Net project on mono.

Could anyone make some suggestions for me? I'd like to use stuff like ActiveRecord, code gen, nhibernate, and nunit-gui. Does any of it work? partially implemented?

Any suggestions on writing an ASP.Net site on MONO, and use Test-driven practises on MONO?

Thanks
-j

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] nUnit & nHibernate (new to mono)

2007-06-25 Thread 'josh coffman'

Hi,

  I'm new to mono and looking to use it on linux (Fedora 7) for a pet project. I've been using .Net since the 1.0 beta so I'm comfortable with c#. I'm just learning how to carry over some of my best practices to mono. I would like to have some GUI for running my nUnit test, but can't seem to build recent nUnit packages. The last Mono package they put out is a little old. Is that my only choice for getting an nUnit gui runner? Anyone have suggestions on TDD with mono?

  I'm also going to be learning nHibernate on mono; never used it on .Net. Anyone know some good references/articles for using nHibernate on mono? Specific to MySQL? Or anything for the Castle project? (http://www.castleproject.org/)

  Any code generator suggestions? I have a license for CodeSmith, but I'm not sure it will run on linux.

  I'm open to any other framework suggestions like Windsor, MonoRail, ActiveRecord, etc. I like to use existing infrastructure when its available and fits the project needs.

Thanks
Josh

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] nunit gives me error on mono but not on asp.net

2007-03-14 Thread GusPS

I've read that the nunit mono version runs only with mono 1.0

I've solve the problem using nunit net-2.0 and invoking it from nant's exec
like this:




  



-- 
View this message in context: 
http://www.nabble.com/nunit-gives-me-error-on-mono-but-not-on-asp.net-tf3376210.html#a9445857
Sent from the Mono - General mailing list archive at Nabble.com.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] nunit gives me error on mono but not on asp.net

2007-03-10 Thread GusPS

Hello, I'm having a problem running nant's (0.85) nunit2 task.

I use ubuntu 6.10 and i've installed nant, nunit and mono using apt-get.
When I run nunit2 task (with verbose option) to execute my tests, this error
happend:

NAnt.Core.BuildException:
/home/development/projects/sm/trunk/code/projects/Tests/Tests.build(78,10):
Failure executing test(s). If you assembly is not built using NUnit version
2.2.8.0, then ensure you have redirected assembly bindings. Consult the
documentation of the  task for more information. --->
System.IO.FileNotFoundException: System : System


It seems that nant or nunit could not find the System assembly. I'm not sure
about that.

If I run it on windows, it works ok.

My target is:







And my config has:
  










Thanks four your help.
Gus.
-- 
View this message in context: 
http://www.nabble.com/nunit-gives-me-error-on-mono-but-not-on-asp.net-tf3376210.html#a9396113
Sent from the Mono - General mailing list archive at Nabble.com.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] nunit addin hosed my monodevelop session

2005-12-09 Thread Francisco Figueiredo Jr.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

kadil wrote:
> Hi,
> 
> I was messing arount with the addins added nunit, now monodevelop woll not 
> start. gets stuck loadinh the nunit addin. under a different login, it starts 
> just fine. any known way to get a vanilla config for my monodevelop?
> 


I think you can try to remove the folder: ~/.config/MonoDevelop

Note that this will remove all previous configurations of MonoDevelop
for your user.

I hope it helps.


- --
Regards,

Francisco Figueiredo Jr.
Npgsql Lead Developer
http://www.pgfoundry.org/projects/npgsql
MonoBrasil Project Founder Member
http://monobrasil.softwarelivre.org


- -
"Science without religion is lame;
religion without science is blind."

  ~ Albert Einstein
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQEVAwUBQ5mHq/7iFmsNzeXfAQKgnwf9GRLutgzO++84/81DQTigmOJDr2ClZ6gE
2yMqZveU49XfQXl4dOOZYW7v4WcD0HUg3DUPG/h4UVSK1Ze0X7f4AncbiLB0SspG
O/B8nBsa9gFXYSi/Htp44aWQrmLEhd+2ArO7cjhx2W7sU3zE2iGZBzOtuZjWhPug
mQFm36e3Fa3Cb3C803YjbzTXWnAldSuUEwfFPr+8Y+f6pW+Go036dmOWUB6cMt73
qRPAHhKTNXFuoIuqueOeclM/PoDJuKLb6afQn8n1Ba47Dohe8qz+hj4ZTh2SynBz
7aZas8ng3Wxv6nbg7z5H+3KdRd9CxEjg8s6YOVFI3PruxAMtgR9q1g==
=io5H
-END PGP SIGNATURE-





___ 
Yahoo! doce lar. Faça do Yahoo! sua homepage. 
http://br.yahoo.com/homepageset.html 

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] nunit addin hosed my monodevelop session

2005-12-08 Thread kadil
Hi,

I was messing arount with the addins added nunit, now monodevelop woll not 
start. gets stuck loadinh the nunit addin. under a different login, it starts 
just fine. any known way to get a vanilla config for my monodevelop?

thanks kim
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


RE: [Mono-list] NUnit support for generics?

2005-09-21 Thread Andy Waddell
Thanks.  I finally got it working.

I struggled with applying the patch against the latest tree, but
eventually got it to work.  Even then when I did a "make clean;make;make
install" I didn't wind up with an nunit-console2 anywhere and I still
had the config file laying lying around.  My install path is
/opt/latest.  I edited the nunit-console script in /opt/latest/bin to
point it to the 2.0 version, then removed
/opt/latest/lib/mono/2.0/nunit-console.exe.config.

cheers,
andy

-Original Message-
From: Kamil Skalski [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 21, 2005 11:04 AM
To: Andy Waddell
Cc: mono-list@lists.ximian.com
Subject: Re: [Mono-list] NUnit support for generics?

Then it works:

[EMAIL PROTECTED] 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
[EMAIL PROTECTED] 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.6Mono 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 <[EMAIL PROTECTED]>:
> 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:[EMAIL PROTECTED]
> Sent: Wednesday, September 21, 2005 10:15 AM
> To: Andy Waddell
> Cc: mono-list@lists.ximian.com
> Subject: Re: [Mono-list] NUnit support for generics?
>
> >
> > [EMAIL PROTECTED] 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 <0x0> 
> > 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
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] NUnit support for generics?

2005-09-21 Thread Kamil Skalski
Then it works:

[EMAIL PROTECTED] 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
[EMAIL PROTECTED] 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.6Mono 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 <[EMAIL PROTECTED]>:
> 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:[EMAIL PROTECTED]
> Sent: Wednesday, September 21, 2005 10:15 AM
> To: Andy Waddell
> Cc: mono-list@lists.ximian.com
> Subject: Re: [Mono-list] NUnit support for generics?
>
> >
> > [EMAIL PROTECTED] 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 <0x0> 
> > 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
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


RE: [Mono-list] NUnit support for generics?

2005-09-21 Thread Andy Waddell
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:[EMAIL PROTECTED] 
Sent: Wednesday, September 21, 2005 10:15 AM
To: Andy Waddell
Cc: mono-list@lists.ximian.com
Subject: Re: [Mono-list] NUnit support for generics?

>
> [EMAIL PROTECTED] 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 <0x0> 
> 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
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] NUnit support for generics?

2005-09-21 Thread Kamil Skalski
>
> [EMAIL PROTECTED] 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 <0x0> 
> 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
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


RE: [Mono-list] NUnit support for generics?

2005-09-20 Thread Andy Waddell
Thanks.  

This was working like a champ for me (I edited the config file to use
2.0 first).  The code below works fine in 2.0 if compile as a console
application (no NUnit), but if invoked via nunit-console, it depends on
the ordering of the lines in my config file.  With the config file
modified to use 2.0 first it crashes, but with the original config file
(1.1) it is fine.  Unfortunately the code I really need to test has this
Dns stuff as well as classes that use Generics... so I'm stuck for now. 

I've now run into a problem with the following trivial test case:

// Class1.cs
using System;
using System.Text;
using System.Net;
using NUnit.Framework;

namespace GetHostByNameNUnitTest
{
[TestFixture]
public class Class1
{
[Test] 
public void TestDns()
{
IPHostEntry hostInfo =
Dns.GetHostEntry("localhost");

Console.WriteLine("Host name : " +
hostInfo.HostName);
Console.WriteLine("IP address : " +
hostInfo.AddressList[0]);
}
}
}

[EMAIL PROTECTED] GetHostByNameNUnitTest]$ mcs -target:library
-out:GetHostByNameNUnitTest.dll  -reference:nunit.framework Class1.cs
[EMAIL PROTECTED] GetHostByNameNUnitTest]$ nunit-console
GetHostByNameNUnitTest.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.4.21.32Mono Version: 2.0.50215.16

.F

Tests run: 1, Failures: 1, Not run: 0, Time: 0.129971 seconds

Tests run: 1, Failures: 1, Not run: 0, Time: 0.129971 seconds

Failures:
1) GetHostByNameNUnitTest.Class1.TestDns : System.NullReferenceException
: Object reference not set to an instance of an object
in <0x0> 
in (wrapper managed-to-native) System.Net.Dns:GetHostByName_internal
(string,string&,string[]&,string[]&)
in <0x00037> System.Net.Dns:GetHostByName (System.String hostName)
in <0x00058> System.Net.Dns:Resolve (System.String hostName)
in <0xa> System.Net.Dns:GetHostEntry (System.String
hostNameOrAddress)
in <0x00010> GetHostByNameNUnitTest.Class1:TestDns ()
in <0x0> 
in (wrapper managed-to-native)
System.Reflection.MonoMethod:InternalInvoke (object,object[])
in <0x0008d> System.Reflection.MonoMethod:Invoke (System.Object obj,
BindingFlags invokeAttr, System.Reflection.Binder binder,
System.Object[] paramete
rs, System.Globalization.CultureInfo culture)


If I flip the lines in the config file back to have 1.1 run first this
test runs cleanly:

[EMAIL PROTECTED] GetHostByNameNUnitTest]$ nunit-console
GetHostByNameNUnitTest.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.4.21.32Mono Version: 1.1.4322.573

.Host name : AWLNX.fnfr.com
IP address : 127.0.0.1


Tests run: 1, Failures: 0, Not run: 0, Time: 0.09918 seconds

Tests run: 1, Failures: 0, Not run: 0, Time: 0.09918 seconds


[EMAIL PROTECTED] GetHostByNameNUnitTest]$ 

--Andy Waddell 

-Original Message-
From: Kamil Skalski [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 15, 2005 9:52 AM
To: Andy Waddell
Cc: mono-list@lists.ximian.com
Subject: Re: [Mono-list] NUnit support for generics?

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 <[EMAIL PROTECTED]>:
>  
>  
> 
> 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

[Mono-list] NUnit support for generics?

2005-09-15 Thread Andy Waddell








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@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] NUnit support for generics?

2005-09-15 Thread Kamil Skalski
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 <[EMAIL PROTECTED]>:
>  
>  
> 
> 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@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
> 
> 
> 


-- 
Kamil Skalski
http://nazgul.omega.pl
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] NUnit

2004-07-12 Thread Ravindra Kumar
Hello,
You can get some good documentation about Nunit from
http://www.nunit.org.
For Mono port of Nunit, see 'cvs/mcs/nunit20' directory.

-Ravi

>>> Ales Vojacek <[EMAIL PROTECTED]> 7/13/2004 3:06:01 AM >>>
Hi,
I have working Mono on Fedora Core2, now. I want to try develop some 
small project and I want to try using NUnit Framework. Is there some 
totorial how to do that?
When I try to find nunit-console tool, there is no file like that.
Thanks Ales
___
Mono-list maillist  -  [EMAIL PROTECTED] 
http://lists.ximian.com/mailman/listinfo/mono-list
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] NUnit

2004-07-12 Thread Ales Vojacek
Hi,
I have working Mono on Fedora Core2, now. I want to try develop some 
small project and I want to try using NUnit Framework. Is there some 
totorial how to do that?
When I try to find nunit-console tool, there is no file like that.
Thanks Ales
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] nunit-console

2004-05-26 Thread Yuri Leikind
Hello all,

If an NUnit  test references types in some other assembly, and is compiled with 
/r:SomeOtherAssembly.dll,
should nunit-console load this assembly at runtime, or should I run nunit-console with 
this assembly
as one of the input files.

I am asking because both variants just don't work for me.

The test is compiled with this command:

  mcs /r:NUnit.Framework.dll,dict.dll /target:library  /out:tests/tests.dll  
tests/tests.cs

As you see, tests/tests.dll references dict.dll in the current directory.

Now I run the test:

[EMAIL PROTECTED]:~/cs/dict$ nunit-console  /nologo  ./tests/tests.dll

** (/usr/share/dotnet/bin/nunit-console.exe:16921): WARNING **: Could not find 
assembly dict
Unhandled Exception: System.NullReferenceException: Object reference not set to an 
instance of an object

Server stack trace: 
in (unmanaged) /usr/lib/libmono.so.0 [0x400c76e2]
[LINES SKIPPED BY ME]
in <0x00177> System.Runtime.Remoting.RemotingServices:InternalExecuteMessage 
(System.MarshalByRefObject,System.Runtime.Remoting.Messaging.IMethodCallMessage)


Exception rethrown at [0]: 

in <0x0028f> NUnit.Core.TestDomain:LoadAssembly (string,string)
in <0x00095> NUnit.Util.NUnitProject:LoadTest (NUnit.Core.TestDomain,string)
in <0x0016d> NUnit.Console.ConsoleUi:MakeTestFromCommandLine 
(NUnit.Core.TestDomain,NUnit.Util.ConsoleOptions)
in <0x0016d> NUnit.Console.ConsoleUi:Main (string[])




Ok. now let's give dict.dll as an argument:

[EMAIL PROTECTED]:~/cs/dict$ nunit-console  /nologo  dict.dll  ./tests/tests.dll
Unhandled Exception: System.DllNotFoundException: shlwapi.dll
in <0x00053> (wrapper managed-to-native) NUnit.Util.ProjectPath:PathCanonicalize 
(System.Text.StringBuilder,string)
in <0x00038> NUnit.Util.ProjectPath:Canonicalize (string)
in <0x0001a> NUnit.Util.ProjectPath:RelativePath (string,string)
in <0x0015f> NUnit.Util.ProjectConfig:get_PrivateBinPath ()
in <0x00154> NUnit.Util.NUnitProject:LoadTest (NUnit.Core.TestDomain,string)
in <0x0016d> NUnit.Console.ConsoleUi:MakeTestFromCommandLine 
(NUnit.Core.TestDomain,NUnit.Util.ConsoleOptions)
in <0x0016d> NUnit.Console.ConsoleUi:Main (string[])


What am I doing wrong?

I use Mono 0.31 packages from Debian Unstable.

-- 
Best regards,
Yuri Leikind

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


Re: [Mono-list] NUnit and gnunit problems

2004-04-09 Thread Gonzalo Paniagua Javier
El jue, 08-04-2004 a las 10:35, Pedro Santos escribió:
[...]
> Then I tried a simple test program:
> 
> using System;
> using NUnit.Framework;
> 
> [TestFixture]
> public class TextF {
>   [Test]
>   public void buu()
>   {
>   Assert.IsTrue(true);
>   }
> };
> 
> Compiled:
> 
> bash-2.05b$ mcs a.cs -r:nunit.framework.dll -t:library
> Compilation succeeded
> 
> But when I run it:
> 
> //
> bash-2.05b$ mono
> ../../downloads/www/nunit/NUnit-2.1.5/bin/nunit-console.exe a.dll
> 
> NUnit version 2.1.5
> Copyright (C) 2002-2003 James W. Newkirk, Michael C. Two, Alexei A.
> Vorontsov, C harlie Poole.
> Copyright (C) 2000-2003 Philip Craig.
> All Rights Reserved.
>  
> OS Version: Unix 5.1.2600.0Mono Version: 1.1.4322.573
>  
> .
> Tests run: 1, Failures: 0, Not run: 0, Time: 0.055477 seconds
>  
> 
> 
> Unhandled Exception: System.NullReferenceException: A null value was
> found where an object instance was required.

nunit-console uses Assembly.Load, which looks for assemblies in the
default paths for mono, not in the current directory. If you want mono
to do it, just 'export MONO_PATH=.:$MONO_PATH' and it will work.

-Gonzalo


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


[Mono-list] NUnit and gnunit problems

2004-04-08 Thread Pedro Santos

Hi, I am playing around with NUnit in Mono and I have some problems. I
downloaded NUnit for Mono from the NUUnit home page. The first wierd
thing happens when I run NUnit tests:

//
bash-2.05b$ mono nunit-console.exe nunit.tests.dll

NUnit version 2.1.5
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 5.1.2600.0Mono Version: 1.1.4322.573
 
F..F.F..F.F.FF.F.F.F.F.F.F.F.F.F.F.F...F.F.F.F.F.F.F..F.F.F..GC
 Warning: Finalization cycle involving d659260
Segmentation fault
//

Then I tried a simple test program:

using System;
using NUnit.Framework;

[TestFixture]
public class TextF {
[Test]
public void buu()
{
Assert.IsTrue(true);
}
};

Compiled:

bash-2.05b$ mcs a.cs -r:nunit.framework.dll -t:library
Compilation succeeded

But when I run it:

//
bash-2.05b$ mono
../../downloads/www/nunit/NUnit-2.1.5/bin/nunit-console.exe a.dll

NUnit version 2.1.5
Copyright (C) 2002-2003 James W. Newkirk, Michael C. Two, Alexei A.
Vorontsov, C harlie Poole.
Copyright (C) 2000-2003 Philip Craig.
All Rights Reserved.
 
OS Version: Unix 5.1.2600.0Mono Version: 1.1.4322.573
 
.
Tests run: 1, Failures: 0, Not run: 0, Time: 0.055477 seconds
 
 
 
Unhandled Exception: System.NullReferenceException: A null value was
found where an object instance was required.
//-

Then I tryed gnunit, I loaded the a.dll test assemlby, but I got a file
not found exception (note that the file exist):

System.IO.FileNotFoundException: File '/home/pre/tmp/unit-test/a.dll'
not found.
in (unmanaged) /usr/local/lib/libmono.so.0(mono_raise_exception+0x1c)
[0x4009333c]
in (unmanaged) /usr/local/lib/libmono.so.0 [0x400b6963]
in <0x0006c> (wrapper remoting-invoke-with-check)
System.AppDomain:LoadAssembly (string,System.Security.Policy.Evidence)
in <0x0006b> System.AppDomain:Load (string)
in <0x00058> (wrapper remoting-invoke-with-check) System.AppDomain:Load
(string)
in <0x0001d> System.Reflection.Assembly:Load (string)
in <0x0001f> Mono.NUnit.GUI.AssemblyStore:Load ()


Any ideias?

-- 
Pedro Santos 
"Si minor plus est ergo nihil sunt omnia..."


signature.asc
Description: This is a digitally signed message part


[Mono-list] Nunit problem

2003-11-09 Thread Dorna Mo
Hi,
I want to use nunit framework in mono, 
I have problem running nunit console with my assembly,
I think that I need to get the patch. I downloaded the patch. and got Nunit 2.0 sources from CVS at source forge,
I typed :
cvs -d:pserver:[EMAIL PROTECTED]:/cvsroot/nunit login
cvs -d:pserver:[EMAIL PROTECTED]:/cvsroot/nunit co nunit2.0
 Run the patch by unzipping 
  gunzip -c nunit20.mono.patch.gz | patch -p1 -d ./nunit20 
I went to nunit folder to run the makefilebut the "make -f makefile.gnu"doesn't work and says : No rule to make the target makefile.gnuI don't know how I can use the nunit in monocan you please help me?thanks, Dorna
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard

[Mono-list] NUnit article on MSDN

2003-10-18 Thread Richard Thombs
Title: Message



FYI, I just saw this 
NUnit article on MSDN... http://msdn.microsoft.com/asp.net/default.aspx?pull=/library/en-us/dnaspp/html/aspnet-testwithnunit.asp
 
Stony



  
  
Richard ThombsDirector & 
  Chief ArchitectTel: 949 716 9938Fax: 413 521 
4587

Composite 
  Data SolutionsCollect data, share 
  knowledgewww.compositedata.com 
  

 


[Mono-list] nunit-console.exe - Segmentation fault

2003-08-17 Thread Giuseppe Greco
Hi all,

after the update of yesterday, besides the problems
with monodoc, nunit-console.exe doesn't function
any more.

When trying to run it, I always get the message
"Segmentation fault".

That's all. No additional info.

Any idea?

Gius_.

-- 

Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  [EMAIL PROTECTED]
web:www.agamura.com


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


Re: [Mono-list] Nunit console problem

2003-08-14 Thread Gonzalo Paniagua Javier
El jue, 14-08-2003 a las 20:06, Kris Luyten escribió:
> Hi, I try to use Nunit tests, but the "nunit-console" application always
> throws a "FileNotFoundException". It is Nunit version 2.0.9.
> 
> I execute the test as follows: "mono `which nunit-console.exe`
> nunit.tests.dll"
> I also tried to execute: "mono `which nunit-console.exe`
> /assembly:nunit.tests.dll" (it does not recognize the assembly opton
> apparantly.
> 
> I always get:
> Unhandled Exception: System.IO.FileNotFoundException: File 'nunit.tests'
> not found.

nunit uses Assembly.Load () to load the assembly passed as argument.
What does that mean? That you need to prepend '.' (a dot) to MONO_PATH
(export MONO_PATH=.:$MONO_PATH) or copy nunit.tests.dll to any directory
already in MONO_PATH.


MONO_PATH=".:$MONO_PATH" mono `which nunit-console.exe` nunit.tests.dll

should work.

-Gonzalo



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


[Mono-list] Nunit console problem

2003-08-14 Thread Kris Luyten
Hi, I try to use Nunit tests, but the "nunit-console" application always
throws a "FileNotFoundException". It is Nunit version 2.0.9.

I execute the test as follows: "mono `which nunit-console.exe`
nunit.tests.dll"
I also tried to execute: "mono `which nunit-console.exe`
/assembly:nunit.tests.dll" (it does not recognize the assembly opton
apparantly.

I always get:
Unhandled Exception: System.IO.FileNotFoundException: File 'nunit.tests'
not found.
in <0x000ab> 00 System.Runtime.Remoting.Proxies.RealProxy:PrivateInvoke
(System.Runtime.Remoting.Proxies.RealProxy,System.Runtime.Remoting.Messaging.IMessage,System.Exception&,object[]&)
in (unmanaged) 07 System.AppDomain:DoCallBack
(System.CrossAppDomainDelegate)
in <0x4> 07 System.AppDomain:DoCallBack
(System.CrossAppDomainDelegate)
in <0x0012a> 00 NUnit.Framework.TestDomain:MakeRemoteTestRunner
(System.IO.FileInfo,System.AppDomain)
in <0x00092> 00 NUnit.Framework.TestDomain:Load (string)
in <0x000db> 00 NUnit.Framework.TestDomain:Load (string)
in <0x00091> 00 NUnit.Console.ConsoleUi:MakeTestFromCommandLine
(NUnit.Framework.TestDomain,NUnit.Util.ConsoleOptions)
in <0x001c2> 00 NUnit.Console.ConsoleUi:Main (string[])
 
GC Warning: Finalization cycle involving 805ef00

Is this a common error?

Thanks,
Kris
-- 
Kris Luyten
email: [EMAIL PROTECTED]
PGP-key: http://lumumba.luc.ac.be/kris/kris-pub.txt
homepage: http://lumumba.luc.ac.be/kris/

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


[Mono-list] NUnit, Mono and Linux

2003-07-13 Thread Ed Howland
Hello.

I've gotten a patched version of NUnit to compile under Mono hosted on Linux. I
know the Debian port of Mono contains this, but that is based on some circa
2002 NUnit code. This patch compiles from the latest NUnit 2.0 CVS sources on
sf. This patch also contains the sources for nunit-gtk there linked against the
patched NUnit.

The patch can be found at http://www.stladvlug.org/cgi/wiki.pl?DownloadsPage


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list