You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There seems to be no real documentation of the reset() function except an Assembla Wiki release comment:
"… If you have one mock repository for a group of tests, you can use the VerifyAll() function and the reset() function to reuse it for another time. ..."
The following is observed in Windows 7 with Visual Studio 2017, but should show the same behavior on any platform.
It works without reuse (snippet from test_cfuncs.cpp):
To make the above reuse test case working the repository reset() function would need to delete all Replace objects within staticReplaces and call the clear() function of staticReplaces.
This is what the destructor of the MockRepository does.
The text was updated successfully, but these errors were encountered:
There seems to be no real documentation of the reset() function except an Assembla Wiki release comment:
"… If you have one mock repository for a group of tests, you can use the VerifyAll() function and the reset() function to reuse it for another time. ..."
The following is observed in Windows 7 with Visual Studio 2017, but should show the same behavior on any platform.
It works without reuse (snippet from test_cfuncs.cpp):
Should is also work with reuse?
What is happening:
To make the above reuse test case working the repository reset() function would need to delete all Replace objects within staticReplaces and call the clear() function of staticReplaces.
This is what the destructor of the MockRepository does.
The text was updated successfully, but these errors were encountered: