What is the MSTest attribute to enable a test resource?

I want to have a test resource available during my test, and I know that there is an attribute that expands the element.

What is an attribute?

+3
source share
2 answers

[DeploymentItem("myFile1.txt")] MSDN Doc in DeploymentItem

This is really useful if you are testing a file or using the file as an input to your test.

+4
source

. , MSTest, , testrunconfig ( "" ). NUnit ( TestDriven.NET) - , , , , VS; " ".

+3

Source: https://habr.com/ru/post/1717833/


All Articles