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()); }
private void GoBack() { if (_router.IsAtRoot()) { return; } _router.GoBack(); }