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 (180 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 (2,970 points)