Why does data driven unit test fail in vs2012 when it worked fine in vs2010?

前端 未结 1 697
小鲜肉
小鲜肉 2020-12-19 13:25

I have some data driven unit tests that were working just fine in Visual Studio 2010. These tests were implemented using the following pattern.



        
相关标签:
1条回答
  • 2020-12-19 14:10

    In Visual Studio 2010, the DeploymentItem attribute is relative to the solution, but in Visual Studio 2012, it is relative to the project. Simply specify the DeploymentItem path relative to the project folder and the unit tests will start working again.

    For more info see the following link.

    http://social.msdn.microsoft.com/Forums/en-US/vsunittest/thread/4a8403a2-b495-4120-aad3-0d0becc7e45e/

    0 讨论(0)
提交回复
热议问题