Reputation: 3539
I added an XML file to a directory that i have in the test project.
How can i access it from the test code?
Upvotes: 0
Views: 74
Reputation: 4070
You didn't mention what language or IDE you're using, but here is what I've done with C# in Visual Studio:
In the unit test:
string testxml = File.ReadAllText("test.xml")
Upvotes: 1