Beispiel #1
0
        public void Router_IsAtRoot()
        {
            _router.GoTo(ControlType.ChangePasswordControl);

            Assert.IsTrue(_router.IsAtRoot());

            _router.GoTo(ControlType.UserManagementControl);

            Assert.IsFalse(_router.IsAtRoot());

            _router.GoBack();

            Assert.IsTrue(_router.IsAtRoot());
        }
Beispiel #2
0
 private void GoBack()
 {
     if (_router.IsAtRoot())
     {
         return;
     }
     _router.GoBack();
 }