mocked.error

Undocumented in source.

Members

Classes

ExpectationViolationException
class ExpectationViolationException

Expected the method to be called n times, but called m times, where m < n. Same as unexpected call, but with expected arguments instead of the actual ones. Thrown if a method was expected to be called, but wasn't.

OutOfOrderCallError
class OutOfOrderCallError

OutOfOrderCallError is thrown only if the checking the call order among methods of the same class is enabled. The error is thrown if a method is called earlier than expected.

UnexpectedArgumentError
class UnexpectedArgumentError

Error thrown when a method has been called with arguments that don't match the expected ones.

UnexpectedCallError
class UnexpectedCallError

Thrown when an unexpected call occurs.

Functions

expectationViolationException
ExpectationViolationException expectationViolationException(string name, MaybeArgs arguments, string file, size_t line, Throwable nextInChain)

Constructs an $(D_PSYMBOL ExpectationViolationException).

outOfOrderCallError
OutOfOrderCallError outOfOrderCallError(string name, Args arguments, size_t expected, size_t got, string file, size_t line, Throwable nextInChain)

Constructs an $(D_PSYMBOL OutOfOrderCallError).

unexpectedArgumentError
UnexpectedArgumentError unexpectedArgumentError(string name, Args arguments, string file, size_t line, Throwable nextInChain)

Constructs an $(D_PSYMBOL UnexpectedArgumentError).

unexpectedCallError
UnexpectedCallError unexpectedCallError(string name, Args arguments, string file, size_t line, Throwable nextInChain)

Constructs an $(D_PSYMBOL UnexpectedCallError).

Meta