I have a xamarin.uitest project and an app project, added in main activity in the app project: MainLauncher = true and the method:
[Export("MyInvokeMethod")]
public void MyInvokeMethod()
{
Console.WriteLine("TEST");
}
and in my project test added a test that only invoke the method:
[Test]
public void MyInvokeMethodTest()
{
_app.Invoke("MyInvokeMethod");
}
and I got : System.Exception : Invoke for MyInvokeMethod failed with outcome: ERROR No such method found: MyInvokeMethod()
I did everything like here : https://docs.microsoft.com/en-us/appcenter/test-cloud/frameworks/uitest/features/backdoors
what am I doing wrong ?