Scenario: I have a test that needs a file deployed inside a folder (e.g. - DeploymentItems\ControlsMetaData.xml) You can use the DeploymentItem attribute with the 2 parameters overload and specify the directory (folder) you would like the test file to be deployed in. [ TestMethod , DeploymentItem ( "DeploymentItems\\ControlsMetaData.xml" , "DeploymentItems" )] public void DeployFileAndContainingFolder() { // Arrange // Act var xmlFiles = UXStandardsViewModel .GetFilesByExtension( Path .Combine(TestContext.TestDeploymentDir, "DeploymentItems" ),...
Comments
Post a Comment