This documentation is archived and is not being maintained.

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)

public abstract void AddResultFile(
	string fileName
)

Parameters

fileName
Type: System.String
The file name to add.

Show: