Has the object been invoked a given number? More...
Public Member Functions | |
InvokeCountMatcher (int count) | |
Creates the object. | |
virtual | ~InvokeCountMatcher () |
Destroys the object. | |
virtual bool | matches () |
Checks if an invocation matches the expectaton. | |
virtual void | verify () |
Verify that the expected value is within the allowed bounds. | |
virtual bool | hasDescription () |
Does the object provide meaningful description via describeTo() ?. | |
virtual String | describeTo (String &buffer) const |
Appends the description of this object to the buffer. |
Has the object been invoked a given number?
Definition at line 49 of file InvokeCountMatcher.h.
mockpp::InvokeCountMatcher::InvokeCountMatcher | ( | int | count | ) |
Creates the object.
count | the required invocation count |
Definition at line 43 of file InvokeCountMatcher.cpp.
Appends the description of this object to the buffer.
buffer | The buffer that the description is appended to. |
Reimplemented from mockpp::InvokedRecorder.
Definition at line 72 of file InvokeCountMatcher.cpp.
bool mockpp::InvokeCountMatcher::hasDescription | ( | ) | [virtual] |
Does the object provide meaningful description via describeTo() ?.
Reimplemented from mockpp::InvokedRecorder.
Definition at line 66 of file InvokeCountMatcher.cpp.
bool mockpp::InvokeCountMatcher::matches | ( | ) | [virtual] |
Checks if an invocation matches the expectaton.
Reimplemented from mockpp::InvokedRecorder.
Definition at line 54 of file InvokeCountMatcher.cpp.
void mockpp::InvokeCountMatcher::verify | ( | ) | [virtual] |
Verify that the expected value is within the allowed bounds.
If it fails, an AssertionFailedError is thrown
Reimplemented from mockpp::InvokedRecorder.
Definition at line 60 of file InvokeCountMatcher.cpp.