We're trying to write unit tests for an ArcGIS Pro Add-In.
1) Is there a way to get an ArcGIS Pro license for accessing ArcGIS.Core.Hosting.Host without installing Pro on our build server?
For example, by copying the infomation that points Pro to the concurrent license server or single use license?
2) When our code must be run in a separate thread, there are two methods for doing it: QueuedWorker.Run (for freestanding CoreHost applications) and QueuedTask.Run (for ArcGIS Pro Add-Ins). When running unit tests against that code, how do we tell it which one to use? We'd like to use the same code in both the unit test and the Add-In.
I've seen this comment, which helps, but doesn’t quite answer the question above: https://community.esri.com/thread/164535#comment-546949
Thanks much!