Better tests

git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@65 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
mat007 2009-11-21 10:51:46 +00:00
parent a11d327318
commit 6354375b7e

View file

@ -39,6 +39,8 @@ BOOST_AUTO_TEST_CASE( verifying_an_object_containing_a_failing_expectation_fails
o.set_parent( e );
e.expect().once();
BOOST_CHECK( ! o.verify() );
o.reset();
BOOST_CHECK( o.verify() );
}
BOOST_AUTO_TEST_CASE( verifying_all_objects_with_one_of_them_containing_a_failing_expectation_fails )
@ -48,6 +50,8 @@ BOOST_AUTO_TEST_CASE( verifying_all_objects_with_one_of_them_containing_a_failin
o.set_parent( e );
e.expect().once();
BOOST_CHECK( ! mock::verify() );
mock::reset();
BOOST_CHECK( mock::verify() );
}
BOOST_AUTO_TEST_CASE( resetting_an_object_containing_a_failing_expectation_and_verifying_it_succeeds )