Class TestIntrospectionHelper
- Namespace
- Xunit.v3
- Assembly
- xunit.v3.core.dll
Helper functions for retrieving and interpreting test and test case details from various sources (like IFactAttribute, IDataAttribute, and others).
public static class TestIntrospectionHelper
- Inheritance
-
TestIntrospectionHelper
- Inherited Members
Methods
- GetTestCaseDetails(ITestFrameworkDiscoveryOptions, IXunitTestMethod, IFactAttribute, object?[]?, int?, string?)
Retrieve the details for a test case that is a test method decorated with an instance of IFactAttribute (or derived).
- GetTestCaseDetailsForTheoryDataRow(ITestFrameworkDiscoveryOptions, IXunitTestMethod, ITheoryAttribute, ITheoryDataRow, object?[])
Retrieve the details for a test case that is a test method decorated with an instance of ITheoryAttribute (or derived) when you have a data row. The data row is used to augment the returned information (traits, skip reason, etc.).
- GetTraits(IXunitTestMethod, ITheoryDataRow?)
Merges the traits from the test method (which already reflect the traits from the test assembly, test collection, and test class) with the traits attached to the data row.
- MergeTraitsInto(Dictionary<string, HashSet<string>>, string[]?)
Merges string-array traits (like from Traits) into an existing traits dictionary.