public override void ExecuteReplace()
 {
     foreach (IRegexView view in m_views)
     {
         NReplaceEventArgs args = new NReplaceEventArgs();
         args.OutputText = getRegex().Replace(InputText,ReplaceWithText);
         view.OnReplace(args);
     }
 }
示例#2
0
 public override void ExecuteReplace()
 {
     foreach (IRegexView view in m_views)
     {
         NReplaceEventArgs args = new NReplaceEventArgs();
         args.OutputText = getRegex().Replace(InputText, ReplaceWithText);
         view.OnReplace(args);
     }
 }
        public void PassedInReplaceArsAreCorrect_Angle2()
        {
            setup_initControllerWithViewInputAndPattern(this, "a", "a");
            m_controller.ReplaceWithText = "c";

            executeTestedMethod();
            NReplaceEventArgs args = (NReplaceEventArgs)passedInReplaceArgs;

            Assert.AreEqual("c", args.OutputText);
        }
        void IRegexView.OnReplace(ReplaceEventArgsBase args)
        {
            NReplaceEventArgs nargs = (NReplaceEventArgs)args;

            txtOutput.Text = nargs.OutputText;
        }