public void DviGotoAddress()
        {
            var dlg = new Mock <IAddressPromptDialog>();

            dlg.Setup(x => x.Address).Returns(Address.Ptr32(0x41104110));
            dlgFactory.Setup(x => x.CreateAddressPromptDialog()).Returns(dlg.Object);
            uiSvc.Setup(x => x.ShowModalDialog(dlg.Object))
            .Returns(DialogResult.OK)
            .Verifiable();
            dlg.Setup(x => x.Dispose());

            Initialize();
            interactor.Execute(new CommandID(CmdSets.GuidReko, CmdIds.ViewGoToAddress));

            uiSvc.VerifyAll();
            Assert.AreEqual(0x41104110ul, interactor.StartAddress.ToLinear());
        }
        public void DviGotoAddress()
        {
            var dlg = repository.Stub <IAddressPromptDialog>();

            dlg.Stub(x => dlg.Address).Return(Address.Ptr32(0x41104110));
            dlgFactory.Stub(x => x.CreateAddressPromptDialog()).Return(dlg);
            uiSvc.Expect(x => uiSvc.ShowModalDialog(
                             Arg <IAddressPromptDialog> .Is.Same(dlg)))
            .Return(DialogResult.OK);
            dlg.Expect(x => x.Dispose());
            repository.ReplayAll();

            Initialize();
            interactor.Execute(new CommandID(CmdSets.GuidReko, CmdIds.ViewGoToAddress));

            repository.VerifyAll();
            Assert.AreEqual(0x41104110ul, interactor.StartAddress.ToLinear());
        }