1. Where were MbUnit.Cons.exe and your test assembly located?  Was
MbUnit.Framework.dll in you c:\development\source folder?  

2. Don't use paths relative to the working directory.  Instead create paths
that are relative to the directory where a particular assembly has loaded.
eg.

string assemblyDir =
Path.GetDirectoryName(typeof(MyTest).Assembly.Location);
string myFilePath = Path.Combine(assemblyDir, "relative/path/to/file");

3. Use [TestFixture(Timeout = number_of_minutes)] instead of [TestFixture].

Jeff.

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Hila
Sent: Thursday, February 07, 2008 7:54 AM
To: MbUnit.User
Subject: MbUnit problems



Hello,
I'm using MbUnit V 2.3, using the MbUnit.Cons.exe and I have  a few
problems:

1.      When I ran the exe interactive everything is fine, but when I run
the same command line from a batch I get the error:
System.ApplicationException: Failed loading assemblies --->
System.ApplicationException: Failed loading TestDomain --->
System.Exception: Failed loading assembly --->
System.ApplicationException: Failed creating the TestEngine instance
---> System.IO.FileNotFoundException: Could not load file or assembly
'file:///C:\development\source\MbUnit.Framework.dll' or one of its
dependencies. The system cannot find the file specified.

2.      When I ran a particular function through TestDriven everything is
fine, but through MbUnit I get an error:
Couldn't find file "..\..\bin\a.exe".
Only if I give him the exact path it works - but I need to give it a
relative path.

3.      When I have a function that runs a lot of time the exe stop on time
out exception.
I didn't find the way to define the wait time.



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MbUnit.User" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/MbUnitUser?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to