Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ConsoleApplication1.cpp : définit le point d'entrée pour l'application console.
- //
- #include "stdafx.h"
- #include "hippomocks.h"
- struct Res
- {
- int i;
- int u;
- int t;
- };
- void func(Res * res)
- {
- }
- int _tmain(int argc, _TCHAR* argv[])
- {
- MockRepository mocks;
- Res rep = { 0, 1, 2 };
- Res res = { 4, 5, 6 };
- mocks.ExpectCallFunc(func).With(Out(rep));
- func(&res);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement