Recently, my company updated our project to VS2010 from VS2008. One of the troubling issues is our unit tests. In VS 2008, most unit tests have this piece of code public TestContext TestContext { get; set; }in VS2008, there were no problems with this, but with VS2010 I now get the following errors:
Cannot set the TestContext property for the VisitorTestAdapterTest class. Error: System.ArgumentException: object of type 'Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestAdapterContext' cannot be converted to type 'Microsoft.VisualStudio.TestTools.UnitTesting.TestContext'
If I just comment on this, then the test work is fine, but looked at the reason it was caused. Does anyone know what has changed as part of unit tests?
source
share