<PackageReference Include="NUnit" Version="3.10.1" />

PropertyAttribute

PropertyAttribute is used to attach information to a test as a name/value pair..
public IPropertyBag Properties { get; }

Gets the property dictionary for this attribute

public PropertyAttribute(string propertyName, string propertyValue)

Construct a PropertyAttribute with a name and string value

public PropertyAttribute(string propertyName, int propertyValue)

Construct a PropertyAttribute with a name and int value

public PropertyAttribute(string propertyName, double propertyValue)

Construct a PropertyAttribute with a name and double value

protected PropertyAttribute()

Constructor for derived classes that set the property dictionary directly.

protected PropertyAttribute(object propertyValue)

Constructor for use by derived classes that use the name of the type as the property name. Derived classes must ensure that the Type of the property value is a standard type supported by the BCL. Any custom types will cause a serialization Exception when in the client.

public virtual void ApplyToTest(Test test)

Modifies a test by adding properties to it.