I am trying to create unit test in VS2010 for Revit addin that I developed. Problem is when I create unit test for a method and then run that test, I get this message:
Test method TestProject1.SimpleTestCommandTest.ExecuteTest threw exception: System.IO.FileNotFoundException: Could not load file or assembly 'RevitAPIUI.dll' or one of its dependencies. The specified module could not be found.
RevitAPIUI.dll is properly added to references of Revit addin project, and also in references of test project.
Any idea what should I do to fix this?