Go to repository
Abstract

Class AbstractFinishedExpectation

This abstract class provides finished expectation behavior for all actions based on the fact that it's subclass provides an implementation for getResult.

Hierarchy (view full)

Implements

Constructors

Methods

If the result of the expectation is true, run the given function.

Parameters

  • action: (() => void)
      • (): void
      • Returns void

Returns void

If the result of the expectation is true, run the first of the functions, if false, run the second one.

Parameters

  • actionWhenTrue: (() => void)
      • (): void
      • Returns void

  • actionWhenFalse: (() => void)
      • (): void
      • Returns void

Returns void

Abstract

Return's the result of the expectancy as a boolean.

Returns boolean

true if the value satisfied the expectation, falseotherwise.

If the result of the expectation is false, run the given function.

Parameters

  • action: (() => void)
      • (): void
      • Returns void

Returns void

If the result of the expectation is false, throw the given error.

Parameters

Returns void

If the result of the expectation is false, return the given value.

Type Parameters

  • T

Parameters

  • value: T

Returns T