Class XunitTestCollection
- Namespace
- Xunit.v3
- Assembly
- xunit.v3.core.dll
The default implementation of IXunitTestCollection for xUnit.net v3.
public class XunitTestCollection : IXunitTestCollection, ITestCollection, ITestCollectionMetadata, IXunitSerializable
- Inheritance
-
XunitTestCollection
- Implements
- Inherited Members
Constructors
- XunitTestCollection()
Called by the de-serializer; should only be called by deriving classes for de-serialization purposes
- XunitTestCollection(IXunitTestAssembly, Type?, bool, string, string?)
Initializes a new instance of the XunitTestCollection class.
Properties
- BeforeAfterTestAttributes
Gets the IBeforeAfterTestAttributes attached to the test collection (and the test assembly).
- ClassFixtureTypes
Gets a list of collection fixture types associated with the test collection.
- CollectionDefinition
Gets the type that this collection definition derived from, if it derives from one. Untyped collections are possible when test classes are decorated using CollectionAttribute(string) and there is no test collection class declared with the same name.
- CollectionFixtureTypes
Gets a list of collection fixture types associated with the test collection.
- DisableParallelization
Determines whether tests in this collection runs in parallel with any other collections.
- TestAssembly
Gets the test assembly this test collection belongs to.
- TestCaseOrderer
Gets the test case orderer for the test collection, if present.
- TestCollectionClassName
Gets the type that the test collection was defined with, if available; may be
nullif the test collection didn't have a definition type.
- TestCollectionDisplayName
Gets the display name of the test collection.
- Traits
Gets the trait values associated with this test collection (and the test assembly). If there are none, or the framework does not support traits, this returns an empty dictionary (not
null).
- UniqueID
Gets the unique ID for this test collection.
Methods
- Deserialize(IXunitSerializationInfo)
Called when the object should populate itself with data from the serialization info.
- Serialize(IXunitSerializationInfo)
Called when the object should store its serialized values into the serialization info.