An expectation is a functor

git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@18 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
mat007 2009-09-01 12:25:40 +00:00
parent 135846946f
commit 60d5c263a6
2 changed files with 174 additions and 111 deletions

View file

@ -26,6 +26,12 @@ namespace
// functor
BOOST_AUTO_TEST_CASE( an_expectation_can_be_passed_as_functor )
{
mock::expectation< void() > e;
boost::function< void() > f = e;
}
BOOST_AUTO_TEST_CASE( an_expectation_can_be_passed_as_functor_using_boost_bind_and_boost_ref )
{
mock::expectation< void() > e;