Class ExtensibilityPointFactory
- Namespace
- Xunit.v3
- Assembly
- xunit.v3.core.dll
Represents a factory for the types used for extensibility throughout the system.
public static class ExtensibilityPointFactory
- Inheritance
-
ExtensibilityPointFactory
- Inherited Members
Methods
- GetAssemblyBeforeAfterTestAttributes(Assembly)
Gets the IBeforeAfterTestAttributes attached to the given test assembly.
- GetAssemblyFixtureTypes(Assembly)
Gets the fixture types that are attached to the test assembly via IAssemblyFixtureAttributes.
- GetAssemblyTestCaseOrderer(Assembly)
Gets the test case orderer that's attached to a test assembly. Returns
null
if there isn't one attached.
- GetAssemblyTestCollectionOrderer(Assembly)
Gets the test collection orderer that's attached to a test assembly. Returns
null
if there isn't one attached.
- GetAssemblyTraits(Assembly)
Gets the traits that are attached to the test assembly via ITraitAttributes.
- GetClassBeforeAfterTestAttributes(Type, IReadOnlyCollection<IBeforeAfterTestAttribute>)
Gets the IBeforeAfterTestAttributes attached to the given test class.
- GetClassClassFixtureTypes(Type, IReadOnlyCollection<Type>)
Gets the fixture types that are attached to the test class via IClassFixture<TFixture>.
- GetClassTestCaseOrderer(Type)
Gets the test case orderer that's attached to a test class. Returns
null
if there isn't one attached.
- GetClassTraits(Type?, IReadOnlyDictionary<string, IReadOnlyCollection<string>>?)
Gets the traits that are attached to the test class via ITraitAttributes.
- GetCollectionBeforeAfterTestAttributes(Type?, IReadOnlyCollection<IBeforeAfterTestAttribute>)
Gets the IBeforeAfterTestAttributes attached to the given test collection.
- GetCollectionBehavior(Assembly)
Gets the ICollectionBehaviorAttribute that's attached to the test assembly, if there is one.
- GetCollectionClassFixtureTypes(Type?)
Gets the fixture types that are attached to the test collection via IClassFixture<TFixture>.
- GetCollectionCollectionFixtureTypes(Type?)
Gets the fixture types that are attached to the test collection via ICollectionFixture<TFixture>.
- GetCollectionDefinitions(Assembly)
Gets the CollectionDefinitionAttributes that are attached to the test assembly. Verifies that there are no collection definitions with identical names.
- GetCollectionTestCaseOrderer(Type?)
Gets the test case orderer that's attached to a test collection. Returns
null
if there isn't one attached.
- GetCollectionTraits(Type?, IReadOnlyDictionary<string, IReadOnlyCollection<string>>?)
Gets the traits that are attached to the test collection via ITraitAttributes.
- GetMethodBeforeAfterTestAttributes(MethodInfo, IReadOnlyCollection<IBeforeAfterTestAttribute>)
Gets the IBeforeAfterTestAttributes attached to the given method.
- GetMethodDataAttributes(MethodInfo)
Gets the IDataAttributes attached to the given test method.
- GetMethodFactAttributes(MethodInfo)
Gets the IFactAttributes attached to the given test method.
- GetMethodTraits(MethodInfo, IReadOnlyDictionary<string, IReadOnlyCollection<string>>?)
Gets the traits that are attached to the test method via ITraitAttributes.
- GetTestFramework(Assembly)
Gets the test framework object for the given test assembly. It is important that callers to this function have called SetForInitialization(IMessageSink?, bool, bool) before calling this, so that the test framework and any ancillary helper classes have access to the diagnostic and internal diagnostic message sinks.
- GetXunitTestCaseDiscoverer(Type)
Gets an xUnit.net v3 test discoverer.
- GetXunitTestCollectionFactory(Type?, IXunitTestAssembly)
Gets an xUnit.net v3 test collection factory.
- Get<TInterface>(Type?, object?[]?)
Gets an instance of the given type, casting it to
TInterface
, using the provided constructor arguments.