mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Added test for a mock class defined within test case
git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@297 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
parent
7b31aea1b3
commit
dbaadfa7f2
1 changed files with 11 additions and 1 deletions
|
|
@ -430,8 +430,18 @@ BOOST_AUTO_TEST_CASE( boost_reference_wrapper_is_supported_in_value_constraint )
|
|||
f( "string" );
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE( mock_object_defined_within_test_case )
|
||||
BOOST_AUTO_TEST_CASE( mock_class_defined_within_test_case )
|
||||
{
|
||||
MOCK_CLASS( mock_within_test_case )
|
||||
{};
|
||||
mock_within_test_case m;
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE( mock_base_class_defined_within_test_case )
|
||||
{
|
||||
struct base
|
||||
{};
|
||||
MOCK_BASE_CLASS( mock_within_test_case, base )
|
||||
{};
|
||||
mock_within_test_case m;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue