mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
More tests
git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@422 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
parent
395bdecc2d
commit
01e31a39c3
1 changed files with 3 additions and 1 deletions
|
|
@ -17,10 +17,11 @@ namespace
|
|||
struct s
|
||||
{
|
||||
virtual void method( int ) {}
|
||||
virtual s& operator=( int ) { return *this; }
|
||||
};
|
||||
bool check( int )
|
||||
{
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -29,6 +30,7 @@ BOOST_AUTO_TEST_CASE( hmm )
|
|||
MockRepository mocks;
|
||||
s* m = mocks.Mock< s >();
|
||||
mocks.ExpectCall( m, s::method ).Match( check );
|
||||
mocks.ExpectCallOverload( m, (s&(s::*)(int))&s::operator= );
|
||||
m->method( 7 );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue