mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
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:
parent
135846946f
commit
60d5c263a6
2 changed files with 174 additions and 111 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue