chevron-thin-right chevron-thin-left brand cancel-circle search youtube-icon google-plus-icon linkedin-icon facebook-icon twitter-icon toolbox download check linkedin phone twitter-old google-plus facebook profile-male chat calendar profile-male

Getting an Unexpected Call

+3 votes
I'm working with the Autodesk COM Interop library and am getting this error:

TypeMock.TypeMockException :
*** Unexpected Call to Inventor.DrawingDocument.get_DisplayName()

The InventorDrawingDocument doesn't show as available for me to set up an Isolate.WhenCalled on it.

The error gets thrown when mockDrawing.DisplayName is accessed.

Any thoughts on how to set that up so that I don't get this problem?
asked Jan 15 by ajw1970 (6,140 points)

1 Answer

0 votes
When using 3rd party libraries (black boxes), invoking a method via a fake object requires setting the method's behavior (but not to CallOriginal() as the implementation isn't known to Isolator).
answered Jan 15 by Raphy (3,840 points)
...