コード例 #1
0
ファイル: LowLevelViewInteractor.cs プロジェクト: mmyydd/reko
 private void UserNavigateToAddress(Address addrFrom, Address addrTo)
 {
     if (!program.Image.IsValidAddress(addrTo))
     {
         return;
     }
     navInteractor.UserNavigateTo(addrTo);
 }
コード例 #2
0
        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);
        }
コード例 #3
0
        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();
        }