XUnit2SettingsExtensions Class

Summary

Contains functionality related to XUnit2 settings.
Namespace
Cake.Common.Tools.XUnit
Base Types
  • object
graph BT Type-->Base0["object"] Type["XUnit2SettingsExtensions"] class Type type-node

Syntax

public static class XUnit2SettingsExtensions

Methods

Name Value Summary
ExcludeTrait(XUnit2Settings, string, string[]) XUnit2Settings
Adds a trait to the settings, to exclude in test execution.
static
IncludeClass(XUnit2Settings, string) XUnit2Settings
Adds a class name to the settings, to include in test execution. Class name should be fully qualified; i.e., MyNameSpace.MyClassName.
static
IncludeMethod(XUnit2Settings, string) XUnit2Settings
Adds a method name to the settings, to include in test execution. Method name should be fully qualified; i.e., MyNameSpace.MyClassName.MyMethod.
static
IncludeNamespace(XUnit2Settings, string) XUnit2Settings
Adds a namespace to the settings, to include in test execution. Namespace should be fully qualified; i.e., MyNameSpace.MySubNamespace.
static
IncludeTrait(XUnit2Settings, string, string[]) XUnit2Settings
Adds a trait to the settings, to include in test execution.
static

Extension Methods

Name Value Summary
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
ToStringWithNullMarkup() string
Returns the string value or a Not set> markup suitable for Spectre.Console.
Requires the Cake.Issues addin