Create a new expectation for the given element.
The element to query to.
The querying element of this expectation.
true if this expectation is a negated expectation, that is,
the not
property was accessed.
The current result of this expectation. Undefined until the first matcher is run.
An array of the matchers run in this expectation.
If the result of the expectation is false, throw the given error.
Run a matcher with the given name, passing the querying element as a first argument, and all additional given arguments. The result of running the matcher is stores, and a new state is pushed to this particular matcher.
The matcher name to run
The arguments to pass to the matcher
The expectation class is the class that is actually instantiated for any expectation. It implements all interfaces for expectations, even the finished expectation ones.