954,510 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Problem with loading assembly when running NUnit (FileNotFoundException)

Recently, I've been using Selenium to record a few simple tests. Although Selenium tests are initially stored as html files, the program allows you to export the test cases in a variety of languages (in this case, I'm using C#).

I downloaded NUnit to use as my testing framework -- I can then load a particular exported C# file into NUnit as a project.

I also created a simple web app where I can click a button to launch NUnit and run a few tests. The problem is, I keep getting this error message:

System.IO.FileNotFoundException : File or assembly name nunit.core, or one of its dependencies, was not found.

Once I exit out of this popup, NUnit opens as desired, however, the tests don't load. The source code behind the web app looks like this:

public void ButtonClick1(object sender, System.EventArgs e)
{
   ProcessStartInfo proc1 = new ProcessStartInfo("C:\\selenium-remote-control
1.0.3\\selenium-dotnet-client-driver-1.0.1\\source\\tools\\nunit\\nunit-gui", "TestProject14.dll");

   System.Diagnostics.Process.Start(proc1);
}


Basically I'm just trying to create a new process which launches the NUnit gui and runs the test. I'm not sure if it can't find the .dll or if it's some other issue.

Any help would be appreciated -- this is my first post, so if I'm missing something completely obvious, I apologize in advance. Thanks!

erinpzk
Newbie Poster
2 posts since Jun 2011
Reputation Points: 10
Solved Threads: 0
 

Hi
think you need to include a reference to NUnitCore.dll in you reference-section of the project.

Bridgekeeper
Newbie Poster
8 posts since Sep 2010
Reputation Points: 9
Solved Threads: 3
 
Hi think you need to include a reference to NUnitCore.dll in you reference-section of the project.

I already added the .dll to the references section, which is why it seems strange to me that it cannot be located.

erinpzk
Newbie Poster
2 posts since Jun 2011
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: