Class CompositeBehaviorExpectation
Namespace: AutoFixture.Idioms
Assembly: AutoFixture.Idioms.dll
Composes an arbitrary number of IBehaviorExpectation instances.
public class CompositeBehaviorExpectation : IBehaviorExpectationInheritance
object ← CompositeBehaviorExpectation
Implements
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
CompositeBehaviorExpectation(params IBehaviorExpectation[])
Initializes a new instance of the CompositeBehaviorExpectation class with
the supplied IBehaviorExpectation instances.
public CompositeBehaviorExpectation(params IBehaviorExpectation[] behaviorExpectations)Parameters
behaviorExpectations IBehaviorExpectation[]
The encapsulated behavior expectations.
See Also
CompositeBehaviorExpectation.CompositeBehaviorExpectation(IEnumerable<IBehaviorExpectation>), CompositeBehaviorExpectation.BehaviorExpectations
CompositeBehaviorExpectation(IEnumerable<IBehaviorExpectation>)
Initializes a new instance of the CompositeBehaviorExpectation class with
the supplied IBehaviorExpectation instances.
public CompositeBehaviorExpectation(IEnumerable<IBehaviorExpectation> behaviorExpectations)Parameters
behaviorExpectations IEnumerable<IBehaviorExpectation>
The encapsulated behavior expectations.
See Also
CompositeBehaviorExpectation.CompositeBehaviorExpectation(params IBehaviorExpectation[]), CompositeBehaviorExpectation.BehaviorExpectations
Properties
BehaviorExpectations
Gets the behavior expectations supplied via the constructor.
public IEnumerable<IBehaviorExpectation> BehaviorExpectations { get; }Property Value
IEnumerable<IBehaviorExpectation>
See Also
CompositeBehaviorExpectation.CompositeBehaviorExpectation(params IBehaviorExpectation[]), CompositeBehaviorExpectation.CompositeBehaviorExpectation(IEnumerable<IBehaviorExpectation>)
Methods
Verify(IGuardClauseCommand)
Verifies the behavior of the command by delegating the implementation to all
BehaviorExpectations.
public void Verify(IGuardClauseCommand command)Parameters
command IGuardClauseCommand
The command whose behavior must be examined.