I have the following IntegrationTest project structure …
If i wish to use that test data 126.txt
in an NUnit Test
, how do I load that plain txt file data?
NOTE: The file is -linked-
and I'm using c# (as noted by the image).
cheers 🙂
.netc++nunittddtesting
I have the following IntegrationTest project structure …
If i wish to use that test data 126.txt
in an NUnit Test
, how do I load that plain txt file data?
NOTE: The file is -linked-
and I'm using c# (as noted by the image).
cheers 🙂
Best Solution
You could specify in the properties of the file to be copied to the output folder and inside the unit test:
As an alternative you could embed this file as a resource into the test assembly and then: