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?
[DeploymentItem("myFile1.txt")] MSDN Doc in DeploymentItem
[DeploymentItem("myFile1.txt")]
This is really useful if you are testing a file or using the file as an input to your test.
. , MSTest, , testrunconfig ( "" ). NUnit ( TestDriven.NET) - , , , , VS; " ".
Source: https://habr.com/ru/post/1717833/More articles:Unique identifier for a Sharepoint document when crawling using SiteData Webservice - uniqueidentifierWhat is a good and useful WCF programming project? - .netHow to get the last modified time of a document in sharepoint? - sharepointImmutable arrays in .net (C #): a reasonable approach? - immutabilityWhy do text-based technical articles often enclose terms in back ticks and single quotes? - textLINQ Aggregate vs nested foreach - linqBeyond the scope of a column in a list column header - user-interfaceHow to start a subprocess, display its output in a graphical interface and allow its completion? - pythonHow can I reload a div using PartialView in ASP.NET MVC using jQuery? - jqueryErlang: Are there any Atompub (Atom Publishing Protocol) libraries available? - erlangAll Articles