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:
mat007 2012-03-09 22:45:32 +00:00
parent 395bdecc2d
commit 01e31a39c3

View file

@ -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 );
}