Class NoConstructorsSpecification
Namespace: AutoFixture.Kernel
Assembly: AutoFixture.dll
A specification that evaluates whether a request is a request for a type without public constructors.
public class NoConstructorsSpecification : IRequestSpecificationInheritance
object ← NoConstructorsSpecification
Implements
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
NoConstructorsSpecification()
Initializes a new instance of the NoConstructorsSpecification class.
public NoConstructorsSpecification()Methods
IsSatisfiedBy(object)
Evaluates a request for a specimen.
public bool IsSatisfiedBy(object request)Parameters
request object
The specimen request.
Returns
true if request is a Type that represents a type without public constructors;
otherwise, false.