Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions
Used to specify deployment item (file or directory) per-test deployment for copying files or folders specified as deployment items to the .DeploymentDirectory.
Deployment directory is where all the deployment items are present along with TestSource dll.
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.
If specified on a test class, the class needs to contain at least one test method. This means that the
attribute cannot be combined with a test class that would contain only a AssemblyInitialize or ClassInitialize
method.
[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.
This property can be useful in attributes derived from ExpectedExceptionBaseAttribute.
Those attributes have access to the test context, and provide messages that are included
in the test results. Users can benefit from messages that include the fully-qualified
class name in addition to the name of 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.