TestContext.AddResultFile Method
When overridden in a derived class, adds a file name to the list in TestResult.ResultFileNames.
Namespace: Microsoft.VisualStudio.TestTools.UnitTesting
Assembly: Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)
Syntax
'Declaration
Public MustOverride Sub AddResultFile ( _
fileName As String _
)
public abstract void AddResultFile(
string fileName
)
public:
virtual void AddResultFile(
String^ fileName
) abstract
abstract AddResultFile :
fileName:string -> unit
public abstract function AddResultFile(
fileName : String
)
Parameters
fileName
Type: StringThe file name to add.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualStudio.TestTools.UnitTesting Namespace