I have created a Nunit test for Android in Xamarin studio for Mac. This is how I created it : Solution -> Add Project -> Android : Unit Test App -> TestDroid.
A project with NunitLite reference, TestSample.cs, and no ManifestFile was created. It runs perfectly in android phone. But when I build the project and tried to run the .dll in console using this command :
I get the error :
Could not load file or assembly 'TestDroid, Version=126.96.36.199, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
Also, I tried removing the reference and added Nunit Nuget package, I still get the same error and my test classes does not appear Xamarin studio test runner pad (Unit test pad). - says Load failed.
I just want to know if at all it is possible to run the android unit test in console and not as an app? And why doesn't my unit test classes appear in the Unit test pad?
Note : I have tried a similar thing using the iOS exe file using this command :
and it works as expected.