Search code examples
visual-studiounit-testingwcsf

Web Client Software Factory Unit Testing Big Fail


it is me again...too much question, I know, but in this I'm kind of a newbie...

Well, I have a problem creating test for a project that is built using Microsoft's Web Client Software Factory: I get a error that says:

Unable to set TestContext property for the class MyClassName. Error: System.ArgumentException: Object of type 'Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestAdapterContext' cannot be converted to type 'Microsoft.VisualStudio.TestTools.UnitTesting.TestContext'..

and the test never runs, any ideas?

Again, thanks in advance =)


Solution

  • Again, one of those seely details: I just had to update the reference of these libraries:

    • Microsoft.VisalStudio.QualityTools.UnitTestFramework
    • Microsoft.VisalStudio.QualityTools.WebTestFramework

    from version 8.0 to 9.0. Really seely, but that worked.

    Thanks for everything.