
+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 by ajw1970 (6.1k 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 by Raphy (4k points)