Namespace AutoFixture.Idioms

Classes

CompositeBehaviorExpectation

Composes an arbitrary number of IBehaviorExpectation instances.

CompositeIdiomaticAssertion

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.

CopyAndUpdateAssertion

Encapsulates a unit test which verifies a method correctly makes a copy of an object while updating one or more public properties or fields.

CopyAndUpdateException

Represents an error about a method that incorrectly implements the idiom tested by the CopyAndUpdateAssertion.

EmptyGuidBehaviorExpectation

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.

EqualityComparerAssertion

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.

EqualsNewObjectAssertion

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.

EqualsNullAssertion

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.

EqualsOverrideException

Represents an error about an ill-behaved override of the Object) method.

EqualsSelfAssertion

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.

EqualsSuccessiveAssertion

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.

GetHashCodeOverrideException

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.

GuardClauseAssertion

Encapsulates a unit test that verifies that a method or constructor has appropriate Guard Clauses in place.

GuardClauseException

Represents an error about a missing Guard Clause.

IdiomaticAssertion

Base implementation of IIdiomaticAssertion.

IndexedReplacement<T>

Replaces an indexed element in a sequence with a given value.

MethodInvokeCommand

Invokes a method.

NullReferenceBehaviorExpectation

Encapsulates expectations about the behavior of a method or constructor when it's invoked with a null argument.

PropertySetCommand

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.

WritablePropertyAssertion

Encapsulates a unit test that verifies that a writable property is correctly implemented.

WritablePropertyException

Represents a verification error when testing whether a writable property is correctly implemented.

Interfaces

IBehaviorExpectation

Represents an expectation about the behavior when an IGuardClauseCommand is invoked.

IExpansion<T>

Represents an operation that somehow expands a single value into a sequence.

IGuardClauseCommand

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.

IIdiomaticAssertion

Represents an encapsulation of an idiomatic unit test assertion based on Reflection types.