andrewfenn / amop

Automatically exported from code.google.com/p/amop
1 stars 0 forks source link

Throwing an exception from mock function #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Throwing an exception from mock function

Usage:

e.g. mockFile.Method(&File::Close).Throws(FileCloseException("message"));

Original issue reported on code.google.com by rdescar...@gmail.com on 7 Apr 2008 at 8:34

GoogleCodeExporter commented 9 years ago
I think that the correct behavior will be that Set() is evaluated before 
Throw(), so
you can both Set parameters and throw an exception.

Original comment by onfre...@gmail.com on 7 Apr 2008 at 9:23

GoogleCodeExporter commented 9 years ago

Original comment by rdescar...@gmail.com on 22 Jun 2008 at 3:17