void TestIntroduceConstantRefactoring (string inputString, string outputString)
		{
			IntroduceConstantRefactoring refactoring = new IntroduceConstantRefactoring ();
			RefactoringOptions options = ExtractMethodTests.CreateRefactoringOptions (inputString);
			IntroduceConstantRefactoring.Parameters param = new IntroduceConstantRefactoring.Parameters () {
				Name = "magic"
			};
			List<Change> changes = refactoring.PerformChanges (options, param);
			string output = ExtractMethodTests.GetOutput (options, changes);
			Assert.IsTrue (ExtractMethodTests.CompareSource (output, outputString), "Expected:" + Environment.NewLine + outputString + Environment.NewLine + "was:" + Environment.NewLine + output);
		}
		public IntroduceConstantDialog (RefactoringOperation refactoring, RefactoringOptions options, IntroduceConstantRefactoring.Parameters parameters)
		{
			this.Build ();
			this.refactoring = refactoring;
			this.options = options;
			this.parameters = parameters;
			
			buttonPreview.Sensitive = buttonOk.Sensitive = false;
			entry.Changed += delegate { buttonPreview.Sensitive = buttonOk.Sensitive = ValidateName (); };
			ValidateName ();
			
			buttonOk.Clicked += OnOKClicked;
			buttonPreview.Clicked += OnPreviewClicked;
			
			ListStore modifiers = new ListStore (typeof (string));
			modifiers.AppendValues ("");
			modifiers.AppendValues ("public");
			modifiers.AppendValues ("private");
			modifiers.AppendValues ("protected");
			modifiers.AppendValues ("internal");
			comboboxModifiers.Model = modifiers;
		}
        public IntroduceConstantDialog(RefactoringOperation refactoring, RefactoringOptions options, IntroduceConstantRefactoring.Parameters parameters)
        {
            this.Build();
            this.refactoring = refactoring;
            this.options     = options;
            this.parameters  = parameters;

            buttonPreview.Sensitive = buttonOk.Sensitive = false;
            entry.Changed          += delegate { buttonPreview.Sensitive = buttonOk.Sensitive = ValidateName(); };
            ValidateName();

            buttonOk.Clicked      += OnOKClicked;
            buttonPreview.Clicked += OnPreviewClicked;

            ListStore modifiers = new ListStore(typeof(string));

            modifiers.AppendValues("");
            modifiers.AppendValues("public");
            modifiers.AppendValues("private");
            modifiers.AppendValues("protected");
            modifiers.AppendValues("internal");
            comboboxModifiers.Model = modifiers;
        }