Compartilhar via


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: String

    The file name to add.

.NET Framework Security

See Also

Reference

TestContext Class

Microsoft.VisualStudio.TestTools.UnitTesting Namespace

Other Resources

Using the TestContext Class