Expectation<T> constructor

const Expectation<T>(
  1. Matcher call,
  2. Answer<T> response
)

A captured method or property accessor -> a function that returns a value.

Implementation

const Expectation(this.call, this.response);