1

I would like to deploy some data items at deployment directory before running the tests in XUnit. It should be something equivalent to DeploymentItem("testdataFile.csv").

But I can't really realize the location of that directory. Is there any deployment Directory exist while running unit tests at XUnit. While we know DeploymentItem is mstest attribute. Is there any thing relevent to Xunit?

Usman
  • 2,742
  • 4
  • 44
  • 82
  • the root of the unit test project... – RandomUs1r Oct 04 '19 at 16:02
  • what exactly is the root of unit test project? Let say i created sample x Unit test project, what would be it's root? /bin/Debug? In this case, I don't want to rely on Debug directory. – Usman Oct 05 '19 at 07:22
  • Assuming you checked the create project in its own directory checkbox: solution1/someproject.tests/[myrootishere] – RandomUs1r Oct 07 '19 at 15:40

0 Answers0