Unhandled Exception: System.IO.DirectoryNotFoundException

241 views
Skip to first unread message

Hamid Assous

unread,
Mar 27, 2014, 2:13:42 PM3/27/14
to nunit-...@googlegroups.com
Hi,

I am new to NUnit. When I execute the command C>nunit-console tests\mock-assembly.dll -noresult
I get an error: Unhandled Exception:
System.IO.DirectoryNotFoundException Could not find part of the path 'C:\Program Files\NUnit 2.6.3\bin\tests\mock-assembly.dll'


I'm running windows 7 on VM.

Thanks,
H. Assous

Simone Busoli

unread,
Mar 30, 2014, 5:53:50 PM3/30/14
to NUnit-Discuss
Try providing the absolute path to your test assembly rather than a relative one.


--
You received this message because you are subscribed to the Google Groups "NUnit-Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nunit-discus...@googlegroups.com.
To post to this group, send email to nunit-...@googlegroups.com.
Visit this group at http://groups.google.com/group/nunit-discuss.
For more options, visit https://groups.google.com/d/optout.

Charlie Poole

unread,
Mar 30, 2014, 5:59:46 PM3/30/14
to nunit-...@googlegroups.com
Presumably you are in the bin directory containing nunit-console.exe
when you enter this?

It should work.

Charlie

Charlie Poole

unread,
Mar 30, 2014, 6:01:20 PM3/30/14
to nunit-...@googlegroups.com
A further idea... although it may be obvious.

Make sure the assembly is actually there. It's possible you didn't
install the tests.

Charlie

Hamid Assous

unread,
Mar 31, 2014, 5:58:19 PM3/31/14
to nunit-...@googlegroups.com

The assembly is not there. I guess i'll do a google search unless you know the website/blog. Thanks!

Charlie Poole

unread,
Mar 31, 2014, 7:24:23 PM3/31/14
to nunit-...@googlegroups.com
The assembly is distributed with NUnit. When you install the MSI, one
of the choices is whether you want tests installed. If you don't
select them, then none of our test assemblies are installed. The
easiest approach is to get the zip file from http://nunit.org and
extract the files you want.

Charlie
Reply all
Reply to author
Forward
0 new messages