Show / Hide Table of Contents

Class TraitAttribute

Attribute used to decorate a test method with arbitrary name/value pairs ("traits").

Inheritance
Object
TraitAttribute
Implements
ITraitAttribute
Namespace: Xunit
Assembly: xunit.core.dll
Syntax
public sealed class TraitAttribute : Attribute, ITraitAttribute

Constructors

| Improve this Doc View Source

TraitAttribute(String, String)

Creates a new instance of the TraitAttribute class.

Declaration
public TraitAttribute(string name, string value)
Parameters
Type Name Description
String name

The trait name

String value

The trait value

Implements

ITraitAttribute
  • Improve this Doc
  • View Source
Back to top Generated by DocFX