mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
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:
parent
a11d327318
commit
6354375b7e
1 changed files with 4 additions and 0 deletions
|
|
@ -39,6 +39,8 @@ BOOST_AUTO_TEST_CASE( verifying_an_object_containing_a_failing_expectation_fails
|
||||||
o.set_parent( e );
|
o.set_parent( e );
|
||||||
e.expect().once();
|
e.expect().once();
|
||||||
BOOST_CHECK( ! o.verify() );
|
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 )
|
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 );
|
o.set_parent( e );
|
||||||
e.expect().once();
|
e.expect().once();
|
||||||
BOOST_CHECK( ! mock::verify() );
|
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 )
|
BOOST_AUTO_TEST_CASE( resetting_an_object_containing_a_failing_expectation_and_verifying_it_succeeds )
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue