Table of Contents

Class TestAttachment

Namespace
NUnit.Framework.Interfaces
Assembly
nunit.framework.dll

The TestAttachment class represents a file attached to a TestResult, with an optional description.

public class TestAttachment
Inheritance
TestAttachment
Inherited Members

Constructors

TestAttachment(string, string?)

Creates a TestAttachment class to represent a file attached to a test result.

public TestAttachment(string filePath, string? description)

Parameters

filePath string

Absolute file path to attachment file

description string

User specified description of attachment. May be null.

Properties

Description

User specified description of attachment. May be null.

public string? Description { get; }

Property Value

string

FilePath

Absolute file path to attachment file

public string FilePath { get; }

Property Value

string