Interface IXunitTestMethod
- Namespace
- Xunit.v3
- Assembly
- xunit.v3.core.dll
Represents a test class from xUnit.net v3 based on reflection.
public interface IXunitTestMethod : ITestMethod, ITestMethodMetadata
- Inherited Members
Properties
- BeforeAfterTestAttributes
Gets the IBeforeAfterTestAttributes attached to the test method (and the test class, test collection, and test assembly).
- DataAttributes
Gets the IDataAttributes attached to the test method.
- FactAttributes
Gets the IFactAttributes attached to the test method.
- IsGenericMethodDefinition
Gets a flag which indicates whether this is a generic method definition.
- Method
Gets the method that this test method refers to.
- Parameters
Gets the parameters of the test method.
- ReturnType
Gets the return type of the test method.
- TestClass
Gets the test class that this test method belongs to.
- TestMethodArguments
Gets the arguments that will be passed to the test method.
Methods
- GetDisplayName(string, string?, object?[]?, Type[]?)
Gets the display name for the test method, factoring in arguments and generic types.
- MakeGenericMethod(Type[])
Creates a generic version of the test method with the given generic types.
- ResolveGenericTypes(object?[])
Resolves the generic types for the test method given the method's arguments. If the method is not generic, will return
null.
- ResolveMethodArguments(object?[])
Resolves argument values for the test method, ensuring they are the correct type, including support for optional method arguments.