Forum General

How to test methods and command having Navigation.PushAsync

Shiva799Shiva799 Member ✭✭

My test cases fails on Naviagtion.PushAsync method. these navigation is directed to next views and not viewmodels and the error is thrown in the xaml.g.cs files of the view. I.e. for example i want to navigate to add page
so i write Navigation.PushAsync(new Add());
and error is thrown in Add.xaml.g.cs pages.
Is there any thing that im missing? I have also implemented the methods shown in the website

Best Answer


  • Shiva799Shiva799 Member ✭✭

    Thanks it worked

  • Can you please show an example of how you did that? I'm facing the same issue here.

Sign In or Register to comment.