I've included the failing interface and test (cgreen based) below. I've removed all functions from the interface except for the destructor and the method in question. AsyncCallback is a function pointer typedef.
Why doesn't this throw? Usually if I setup a call expectation and I do not call the function, amop will throw. I tried adding a mockStream.verify() at the end of the test method, but that did not help.
I am running the latest from svn.
Thanks
Erik
class Stream
{
public:
virtual ~Stream();
...
virtual void beginRead(AsyncCallback callback, void* state) = 0;
...
};
//This test should throw, but it does not.
Ensure xxx()
{
MockObject<Stream> mockStream;
mockStream.call(&Stream::beginRead);
//mockStream->beginRead(NULL,NULL);
}
--
You received this message because you are subscribed to the Google Groups "amop group" group.
To post to this group, send email to
amop-...@googlegroups.com.
To unsubscribe from this group, send email to
amop-group+...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/amop-group?hl=en.