Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions
Used to specify deployment item (file or directory) for per-test deployment.
Can be specified on test class or test method.
Can have multiple instances of the attribute to specify more than one item.
The item path can be absolute or relative, if relative, it is relative to RunConfig.RelativePathRoot.
[DeploymentItem("file1.xml")]
[DeploymentItem("file2.xml", "DataFiles")]
[DeploymentItem("bin\Debug")]
Initializes a new instance of the class.
The file or directory to deploy. The path is relative to the build output directory. The item will be copied to the same directory as the deployed test assemblies.
Initializes a new instance of the class
The relative or absolute path to the file or directory to deploy. The path is relative to the build output directory. The item will be copied to the same directory as the deployed test assemblies.
The path of the directory to which the items are to be copied. It can be either absolute or relative to the deployment directory. All files and directories identified by will be copied to this directory.
Gets the path of the source file or folder to be copied.
Gets the path of the directory to which the item is copied.
Used to store information that is provided to unit tests.
Gets test properties for a test.
Gets or sets the cancellation token source. This token source is canceled when test times out. Also when explicitly canceled the test will be aborted
Gets base directory for the test run, under which deployed files and result files are stored.
Gets directory for files deployed for the test run. Typically a subdirectory of .
Gets base directory for results from the test run. Typically a subdirectory of .
Gets directory for test run result files. Typically a subdirectory of .
Gets directory for test result files.
Gets base directory for the test run, under which deployed files and result files are stored.
Same as . Use that property instead.
Gets directory for files deployed for the test run. Typically a subdirectory of .
Same as . Use that property instead.
Gets directory for test run result files. Typically a subdirectory of .
Same as . Use that property for test run result files, or
for test-specific result files instead.
Gets the Fully-qualified name of the class containing the test method currently being executed
Gets the fully specified type name metadata format.
Gets the fully specified method name metadata format.
Gets the name of the test method currently being executed
Gets the current test outcome.
Adds a file name to the list in TestResult.ResultFileNames
The file Name.
Used to write trace messages while the test is running
formatted message string
Used to write trace messages while the test is running
format string
the arguments
Used to write trace messages while the test is running
formatted message string
Used to write trace messages while the test is running
format string
the arguments