VS doesn't trust Rhino Mocks
I'm using Rhino Mock in my unit tests and I needed a feature that was in version 3.3. So I downloaded the newer version and added it to my test project.
Then when I tried to run my tests I started getting this error:
Failed to Queue Test Run : Microsoft.VisualStudio.TestTools.TestManagement.ExecutionException: Test Run deployment issue: The location of the file or directory '...'\MockFramework\Rhino.Mocks.dll' is not trusted.
After a bit of digging I found a post that explained the issue. Basically, when you download a dll from the internet, XP will attach some extra information in the filesystem, which if you try to open the dll from windows it will say "Are you sure?" Well, if VS sees that this dll has this extra info, then it reports it as not being trusted, and VS doesn't support deployment items that are not fully trusted.
I was able to resolve this by going to the dll, right clicking, selecting properties and clicked the "Unblock" button.
Labels: Unit Testing

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home