Hi,
I am trying to use Nunit testing in Arc Objects with Visual Studio 2010 and ArcGIS 10.2 with C#.
The main problem seems the initializing of the Arc Objects.
I used the below code for licence initialization
[SetUp]
public void Init()
{
ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.Desktop);
var aoInit = new AoInitializeClass();
esriLicenseStatus status = aoInit.Initialize(esriLicenseProductCode.esriLicenseProductCodeStandard);
}
The license is correctly checked out.
After add some code in TestCase and run the application, it throws exception:
Failure: SetUp : System.DllNotFoundException : Unable to load DLL 'ArcGISVersion.dll': The specified module could not be found. ( Exception from HRESULT: 0x8007007E).
But I given Esri.ArcGIS.Version dll reference.
Does any one worked on Nunit Testing in Arcobjects? Please give the suggetions for this.
Thanks & Regards,
Upendra