Class ExactTypeSpecification
A specification that evaluates requests for types against a target type. Also matches generic type requests agains the specified open generic.
Inheritance
System.Object
ExactTypeSpecification
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: AutoFixture.Kernel
Assembly: AutoFixture.dll
Syntax
public class ExactTypeSpecification : IRequestSpecification
Constructors
| Improve this Doc View SourceExactTypeSpecification(Type)
Initializes a new instance of the ExactTypeSpecification class.
Declaration
public ExactTypeSpecification(Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The target type. |
Properties
| Improve this Doc View SourceTargetType
Gets the type targeted by this IRequestSpecification.
Declaration
public Type TargetType { get; }
Property Value
Type | Description |
---|---|
System.Type |
Methods
| Improve this Doc View SourceIsSatisfiedBy(Object)
Evaluates a request for a specimen.
Declaration
public bool IsSatisfiedBy(object request)
Parameters
Type | Name | Description |
---|---|---|
System.Object | request | The specimen request. |
Returns
Type | Description |
---|---|
System.Boolean | true if |