Class TestAttachment
The TestAttachment class represents a file attached to a TestResult, with an optional description.
Inherited Members
Namespace: NUnit.Framework.Interfaces
Assembly: nunit.framework.dll
Syntax
public class TestAttachment
Constructors
View SourceTestAttachment(string, string?)
Creates a TestAttachment class to represent a file attached to a test result.
Declaration
public TestAttachment(string filePath, string? description)
Parameters
Type | Name | Description |
---|---|---|
string | filePath | Absolute file path to attachment file |
string | description | User specified description of attachment. May be null. |
Properties
View SourceDescription
User specified description of attachment. May be null.
Declaration
public string? Description { get; }
Property Value
Type | Description |
---|---|
string |
FilePath
Absolute file path to attachment file
Declaration
public string FilePath { get; }
Property Value
Type | Description |
---|---|
string |