Search Results for

    Show / Hide Table of Contents

    Class TestAttachment

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

    Inheritance
    object
    TestAttachment
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: NUnit.Framework.Interfaces
    Assembly: nunit.framework.dll
    Syntax
    public class TestAttachment

    Constructors

    View Source

    TestAttachment(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 Source

    Description

    User specified description of attachment. May be null.

    Declaration
    public string? Description { get; }
    Property Value
    Type Description
    string
    View Source

    FilePath

    Absolute file path to attachment file

    Declaration
    public string FilePath { get; }
    Property Value
    Type Description
    string
    • View Source
    In this article
    Back to top Generated by DocFX | Copyright (c) 2018- The NUnit Project - Licensed under CC BY-NC-SA 4.0