public async Task SetNamingConventions_subNameSpace()
        {
            NavController.SetNamingConventions("Vms", "Pages");
            navController = new NavController();
            await navController.InitAsync(new Pages.TestVmsPage());

            Assert.IsInstanceOf <Vms.TestVmsViewModel>(navController.RootViewModel);

            await navController.PushAsync <Vms.TestVmsViewModel>();

            Assert.Multiple(() =>
            {
                Assert.AreEqual(2, navController.MainStack.Count);
                Assert.IsInstanceOf <Pages.TestVmsPage>(navController.TopPage);
            });
        }
        public async Task SetNamingConventions_subNameSpace_and_suffix_withDi()
        {
            NavController.SetNamingConventions("Vms", "Pages", "Vm", "Pg");
            navController = new NavController();
            await navController.DiInitAsync(new Vms.DiTestVmsVm());

            Assert.IsInstanceOf <Pages.DiTestVmsPg>(navController.RootPage);

            await navController.DiPushAsync(new Vms.DiTestVmsVm());

            Assert.Multiple(() =>
            {
                Assert.AreEqual(2, navController.MainStack.Count);
                Assert.IsInstanceOf <Pages.DiTestVmsPg>(navController.TopPage);
            });
        }
        public async Task SetNamingConventions_suffix_withDi()
        {
            NavController.SetNamingConventions(viewModelSuffix: "Vm", viewSuffix: "Pg");
            navController = new NavController();
            await navController.DiInitAsync(new DiTestVm0());

            Assert.IsInstanceOf <DiTestPg0>(navController.RootPage);

            await navController.DiPushAsync(new DiTestVm0());

            Assert.Multiple(() =>
            {
                Assert.AreEqual(2, navController.MainStack.Count);
                Assert.IsInstanceOf <DiTestPg0>(navController.TopPage);
            });
        }
 public void TearDown()
 {
     NavController.SetNamingConventions();
 }