Mocking with Boost::Test
- by Billy ONeal
Hello everyone :)
I'm using the Boost::Test library for unit testing, and I've in general been hacking up my own mocking solutions that look something like this:
//In header for clients
struct RealFindFirstFile
{
static HANDLE FindFirst(LPCWSTR lpFileName, LPWIN32_FIND_DATAW lpFindFileData) {
return FindFirstFile(lpFileName,…