XUnit2SettingsExtensions.

IncludeTrait(XUnit2Settings, string, string[]) Method

Summary

Adds a trait to the settings, to include in test execution.

Syntax

public static XUnit2Settings IncludeTrait(this XUnit2Settings settings, string name, params string[] values)

Parameters

Name Type Description
settings XUnit2Settings The settings.
name string The trait name.
values string[] The trait values.

Return Value

Type Description
XUnit2Settings The same XUnit2Settings instance so that multiple calls can be chained.