ladookie
ladookie

Reputation: 1371

Assert.IsInstanceOfType fails even though it says both types are the same

How can this happen? And How can I fix it?

enter image description here

Upvotes: 2

Views: 802

Answers (1)

Chris Shain
Chris Shain

Reputation: 51369

My guess (and I stress it is just a guess) is that the test assembly and the assembly under test either reference different versions of the System.Web.Mvc assembly, or one is ultimately resolving a different version. Either way, ultimately the test assembly is expecting one version, and the assembly under test is returning another.

Try doing a clean then a full rebuild, and check other culprits like the web.config binding redirects as @SLaks points out in the comments.

Upvotes: 5

Related Questions