XUnit2SettingsExtensions.

IncludeMethod(XUnit2Settings, string) Method

Summary

Adds a method name to the settings, to include in test execution. Method name should be fully qualified; i.e., MyNameSpace.MyClassName.MyMethod.

Syntax

public static XUnit2Settings IncludeMethod(this XUnit2Settings settings, string methodNameToInclude)

Parameters

Name Type Description
settings XUnit2Settings The settings.
methodNameToInclude string The method name to include.

Return Value

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