mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
More work on mock functors
git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@55 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
parent
ed5ae2b859
commit
8e1499ee61
3 changed files with 20 additions and 7 deletions
|
|
@ -193,3 +193,9 @@ BOOST_AUTO_TEST_CASE( custom_mock_object_without_macros_is_named )
|
|||
my_custom_mock_object m;
|
||||
BOOST_CHECK_EQUAL( "my_custom_mock_object::my_method", to_string( MOCK_MOCKER( m, my_method ) ) );
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE( mock_functor_is_named )
|
||||
{
|
||||
MOCK_FUNCTOR( void() ) f;
|
||||
BOOST_CHECK_EQUAL( "f", to_string( MOCK_MOCKER( f, _ ) ) );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue