Class EqualRequestSpecification
Evaluates whether a request is equal to an expected target.
Inheritance
System.Object
EqualRequestSpecification
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 EqualRequestSpecification : IRequestSpecification
Constructors
| Improve this Doc View SourceEqualRequestSpecification(Object)
Initializes a new instance of the EqualRequestSpecification class.
Declaration
public EqualRequestSpecification(object target)
Parameters
Type | Name | Description |
---|---|---|
System.Object | target |
EqualRequestSpecification(Object, IEqualityComparer)
Initializes a new instance of the EqualRequestSpecification class.
Declaration
public EqualRequestSpecification(object target, IEqualityComparer comparer)
Parameters
Type | Name | Description |
---|---|---|
System.Object | target | |
System.Collections.IEqualityComparer | comparer |
Properties
| Improve this Doc View SourceComparer
Gets the equality comparer used to compare a request to the expected target.
Declaration
public IEqualityComparer Comparer { get; }
Property Value
Type | Description |
---|---|
System.Collections.IEqualityComparer |
Target
Gets the expected target.
Declaration
public object Target { get; }
Property Value
Type | Description |
---|---|
System.Object |
Methods
| Improve this Doc View SourceIsSatisfiedBy(Object)
Evaluates whether a request for a specimen is equal to the expected target.
Declaration
public bool IsSatisfiedBy(object request)
Parameters
Type | Name | Description |
---|---|---|
System.Object | request |
Returns
Type | Description |
---|---|
System.Boolean |