Friday, 12 January 2018

development - How to unit test ArcObjects with Mocking?


I'm a huge fan of unit testing, but still make use of a FGDB to grab features for running unit tests against when using the ArcObjects framework.



Is anyone successfully using mocking against thinks like IFeature, IGeometry, IWorkspace etc. If so, I'd love to see some examples of how you're doing it. I don't really care about what mocking framework you use, just seeing how you're doing it would be greatly appreciated.


The problem I see is that you're having to slice and dice between so many interfaces on the same object, that the overhead of creating a representative mock object would be huge.




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...