1
Vote

Unit test Runner failed to load test assembly

description

When i try to run silverlight tests i get the following error:

FileNotFoundException; Cound not load file or Assembly 'System.Core, Version=2.0.5.0, Culture=netural, PublicKeyToken=7cec85dbea7798e1'

using AgUnit 4.1,Silverlight 4, and resharper6.0.2202.688

file attachments

comments

SDeKock wrote Aug 11, 2011 at 2:46 PM

You should only get this error when for some reason the tests are not being run with AgUnit, but the default (desktop .NET framework) runners.
Are you sure AgUnit is installed correctly ?

Check the "ReSharper > Options... > Plugins" options.
Make sure AgUnit 0.4.1 is listed and enabled.

Also check the "ReSharper > Options... > Unit Testing" options.
It should include a "Silverlight" unit testing provider. Also make sure that's enabled.

Most common is issue is that the files are blocked in windows.
You can open the file properties for each of the files and click the "Unblock" button.
Or you can extract the zip-file with another tool, like 7-zip or WinRAR, that also shouldn't block the files.

techekon wrote Aug 11, 2011 at 3:39 PM

Although it did say
Plugins: 1

1. “AgUnit 0.4.1 for R# 6.0” v0.4.1.0 by “AgUnit authors - http://agunit.codeplex.com”

Visual Studio 10.0.40219.1.

They were blocked so that was my issue, thanks.

techekon wrote Aug 11, 2011 at 3:58 PM

So i'd like to add that the FAQ says ublock all the *.dll's but I noticed all .xap's are blocked as well. I just reinstalled using 7zip. I'm getting a different but similar exception now this time it can't find the xap file with my project name, i see an agunit xap file in the same directory, including screen shot of stack trace.

techekon wrote Aug 11, 2011 at 4:16 PM

Sorry the agunit.testrunner.xap was old just wasn't getting cleaned out.

SDeKock wrote Aug 11, 2011 at 4:21 PM

Great!

I really need to start working on an installer :)