Namespace AutoFixture.Idioms
Classes
Composes an arbitrary number of IBehaviorExpectation instances.
Composes an arbitrary number of IIdiomaticAssertion instances.
ConstructorInitializedMemberAssertion
Encapsulates a unit test that verifies that a member (property or field) is correctly initialized by the constructor.
ConstructorInitializedMemberException
Represents a verification error when testing whether a read-only property is correctly implemented.
Encapsulates a unit test which verifies a method correctly makes a copy of an object while updating one or more public properties or fields.
Represents an error about a method that incorrectly implements the idiom tested
by the CopyAndUpdateAssertion.
Encapsulates the expected behavior when an IGuardClauseCommand (typically
representing a method or constructor) is invoked with a Empty argument.
EmptyStringBehaviorExpectation
Encapsulates the expected behavior when an IGuardClauseCommand (typically
representing a method or constructor) is invoked with a Empty argument.
Encapsulates a unit test that verifies that a type implementing IEqualityComparer%601 implements it correctly.
EqualityComparerEqualsAssertion
A base class for building classes that encapsulate a unit test that verifies that a type implementing IEqualityComparer%601 implements it correctly.
EqualityComparerEqualsNullAssertion
Encapsulates a unit test that verifies that a type implementing IEqualityComparer%601 implements it correctly
with respect of the rule: calling Equals(x, null) should return false.
EqualityComparerEqualsNullNullAssertion
Encapsulates a unit test that verifies that a type implementing IEqualityComparer%601 implements it correctly
with respect of the rule: calling Equals(null, null) should return true.
EqualityComparerEqualsSelfAssertion
Encapsulates a unit test that verifies that a type implementing IEqualityComparer%601 implements it correctly
with respect of the rule: calling Equals(x, x) should return true.
EqualityComparerEqualsSymmetricAssertion
Encapsulates a unit test that verifies that a type implementing IEqualityComparer%601 implements it correctly
with respect of the rule: calling Equals(x, y) should return same as Equals(y, x).
EqualityComparerEqualsTransitiveAssertion
Encapsulates a unit test that verifies that a type implementing IEqualityComparer%601 implements it correctly
with respect of the rule: calling Equals(x, z) should return same as Equals(x, y) and Equals(y, z).
EqualityComparerGetHashCodeAssertion
Encapsulates a unit test that verifies that a type implementing IEqualityComparer%601 implements it correctly
with respect of the rule: calling GetHashCode(x) should always return same value.
EqualityComparerImplementationException
Represents an error about an ill-behaved implementation of the IEqualityComparer%601 interface.
Encapsulates a unit test that verifies that a type which overrides the
Object) method is implemented correctly with
respect to the rule: calling x.Equals(new object()) returns false.
Encapsulates a unit test that verifies that a type which overrides the
Object) method is implemented correctly with
respect to the rule: calling x.Equals(null) returns false.
Represents an error about an ill-behaved override of the Object)
method.
Encapsulates a unit test that verifies that a type which overrides the
Object) method is implemented correctly with
respect to the rule: calling x.Equals(x) returns true.
Encapsulates a unit test that verifies that a type which overrides the
Object) method is implemented correctly with
respect to the rule: calling x.Equals(y) 3 times returns same value.
Represents an error about an ill-behaved override of the GetHashCode
method.
GetHashCodeSuccessiveAssertion
Encapsulates a unit test that verifies that a type which overrides the
GetHashCode method is implemented correctly with
respect to the rule: calling x.GetHashCode() 3 times returns same value.
Encapsulates a unit test that verifies that a method or constructor has appropriate Guard Clauses in place.
Represents an error about a missing Guard Clause.
Base implementation of IIdiomaticAssertion.
Replaces an indexed element in a sequence with a given value.
Invokes a method.
NullReferenceBehaviorExpectation
Encapsulates expectations about the behavior of a method or constructor when it's invoked with a null argument.
Assigns a value to a property.
ReflectionExceptionUnwrappingCommand
Decorates another IGuardClauseCommand and unwraps
TargetInvocationException occurances from the Object) method.
WhiteSpaceStringBehaviorExpectation
Encapsulates the expected behavior when an IGuardClauseCommand (typically
representing a method or constructor) is invoked with a white space argument.
Encapsulates a unit test that verifies that a writable property is correctly implemented.
Represents a verification error when testing whether a writable property is correctly implemented.
Interfaces
Represents an expectation about the behavior when an IGuardClauseCommand is
invoked.
Represents an operation that somehow expands a single value into a sequence.
Represents an action which can be invoked to verify whether or not an expectation about Guard Clause behavior is met, and what to do if that is not the case.
Represents an encapsulation of an idiomatic unit test assertion based on Reflection types.