XrmMockup
XrmMockup copied to clipboard
DataSource Attribute fails test
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.
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