如何为以回调函数作为参数的函数编写单元测试?
unsigned __int32
MyStream::DoThis(callBackFunction in_Function,
unsigned __int32 in_Length)
{
//some code
//some code
return readStream->DoThis(in_Function, dataLength);
}
如何为以回调函数作为参数的函数编写单元测试?
unsigned __int32
MyStream::DoThis(callBackFunction in_Function,
unsigned __int32 in_Length)
{
//some code
//some code
return readStream->DoThis(in_Function, dataLength);
}