private void UserNavigateToAddress(Address addrFrom, Address addrTo)
 {
     if (!program.Image.IsValidAddress(addrTo))
     {
         return;
     }
     navInteractor.UserNavigateTo(addrTo);
 }
        public void Ni_Back()
        {
            ni = new NavigationInteractor();
            mr.ReplayAll();

            When_Attached();
            navControl.CurrentAddress = addr42;
            ni.UserNavigateTo(addr43);
            btnBack.Raise(b => b.Click += null, btnBack, EventArgs.Empty);

            Assert.IsFalse(btnBack.Enabled);
            Assert.IsTrue(btnForward.Enabled);
            Assert.AreSame(addr42, navControl.CurrentAddress);
        }
        public void Ni_UserNavigateTo()
        {
            ni = new NavigationInteractor();
            mr.ReplayAll();


            When_Attached();
            navControl.CurrentAddress = addr42;
            Assert.IsFalse(btnBack.Enabled);
            ni.UserNavigateTo(addr43);
            Assert.IsTrue(btnBack.Enabled);
            Assert.AreEqual(addr43, navControl.CurrentAddress);

            mr.VerifyAll();
        }