Class ReadonlyCollectionPropertiesSpecification
Namespace: AutoFixture.Kernel
Assembly: AutoFixture.dll
A specification that evaluates whether or not a request is for a type containing readonly properties that
implement ICollection%601.
public class ReadonlyCollectionPropertiesSpecification : IRequestSpecificationInheritance
object ← ReadonlyCollectionPropertiesSpecification
Implements
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
ReadonlyCollectionPropertiesSpecification()
Constructs an instance of ReadonlyCollectionPropertiesSpecification with a default
query applied for selection of readonly collection properties.
public ReadonlyCollectionPropertiesSpecification()ReadonlyCollectionPropertiesSpecification(IPropertyQuery)
Constructs an instance of ReadonlyCollectionPropertiesSpecification, which will use the query
supplied in propertyQuery to determine whether or not a type contains readonly collection
properties.
public ReadonlyCollectionPropertiesSpecification(IPropertyQuery propertyQuery)Parameters
propertyQuery IPropertyQuery
The query that will be applied to select readonly collection properties.
Fields
DefaultPropertyQuery
The default query that will be applied to select readonly collection properties.
public static readonly IPropertyQuery DefaultPropertyQueryField Value
Properties
PropertyQuery
Gets the query used to determine whether or not a specified type has readonly collection properties.
public IPropertyQuery PropertyQuery { get; }Property Value
Methods
IsSatisfiedBy(object)
Evaluates whether or not the request is for a type containing readonly properties that
implement ICollection%601.
public bool IsSatisfiedBy(object request)Parameters
request object
The specimen request.
Returns
true if the request is for a type containing readonly properties that
implement ICollection%601; false otherwise.