How to set up Unit Test Project to test a ArcPro AddIn project? MsTest is also fine. Also would like to integrate Moq.
So far:
Added an NUnit test project to the solution and referenced the addin project. Wouldn't compile so opened the test project csproj file and changed
<TargetFramework>net6.0</TargetFramework> to
<TargetFramework>net6.0-windows</TargetFramework>
Now it compiles, but when running a unit test, get the following error:
System.IO.FileNotFoundException : Could not load file or assembly 'ArcGIS.Desktop.Framework, Version=13.2.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86'. The system cannot find the file specified.
Both the addin project and the test project have <PlatformTarget>x64</PlatformTarget>.
Is this a license issue? Have Named User License.