mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Added support for mock::verify and mock::reset for functors
git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@408 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
parent
7fb0b814b3
commit
96ad4b068b
2 changed files with 25 additions and 0 deletions
|
|
@ -253,6 +253,20 @@ BOOST_AUTO_TEST_CASE( mock_functor )
|
|||
MOCK_FUNCTOR( f2, int( const std::string& ) );
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE( mock_functor_reset )
|
||||
{
|
||||
MOCK_FUNCTOR( f, void() );
|
||||
MOCK_RESET( f );
|
||||
mock::reset( f );
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE( mock_functor_verify )
|
||||
{
|
||||
MOCK_FUNCTOR( f, void() );
|
||||
MOCK_VERIFY( f );
|
||||
mock::verify( f );
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE( mock_functor_is_named )
|
||||
{
|
||||
MOCK_FUNCTOR( f, void() );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue