You can monitor stubs execution to check against certain expectations, such as the number of calls to a given stub or stubs call sequence. Expectations should be defined inside the test cases and are verified just after the test case execution is finished. If the expectation is not met, then a suitable message is generated and output to the results. All expectations are removed at the end of test case execution after the outcome has been verified.
Info |
---|
To You can configure stub expectations , the stub must have been for subs that are created with a test configuration where one of the following dynamic stub configuration options enabled in the test configuration used to generate stubsis enabled:
See Dynamic Stubs Configuration 1 for additional information. |
...