XrmMockup icon indicating copy to clipboard operation
XrmMockup copied to clipboard

DataSource Attribute fails test

Open misoeli opened this issue 6 years ago • 1 comments

To reproduce, create a csv file data.csv in the DataDirectory (ie. unit test root folder) and set it to Copy Always in properties, so it's output to bin.

Add data source like [DataSource("Microsoft.VisualStudio.TestTools.DataSource.CSV", "|DataDirectory|\data.csv", "data#csv", DataAccessMethod.Sequential)] [DeploymentItem("data.csv")]

When running the rebuilt unit test suite, all tests are failing, reportedly due to Metadata.xml missing. The file is present though, and removing the one unit test with the Annotated attribute resolves the issue.

misoeli avatar Dec 14 '17 09:12 misoeli

Might be related to this issue https://social.msdn.microsoft.com/Forums/en-US/22c9e4ad-88ec-4669-bd54-195539ccf8c6/datasource-and-datadirectory-issues?forum=vststest

Ladekarl avatar Mar 27 '18 13:03 Ladekarl