Replies: 1 comment 1 reply
-
the best way is use a INavigationService and inside call the shell navigation methods, in my case I create a current page property and when I am using the unit test I skip the shell... |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In my view model, on a button click, using command, I navigate to a different screen using Shell.
Like this:
Shell.Current.GoToAsync("//HomePage");
But since Shell.Current is null when I run unit test, the tests crashes and fails. How do I validate Shell naviation in the ViewModel when used with Shell?
Beta Was this translation helpful? Give feedback.
All reactions