public MainForm()
        {
            InitializeComponent();
            SetModeDropdown();

            replacer = new Replacer
                           {
                               OutputDirectoryName = textBoxOutputDir.Text,
                               Rules = new Rules()
                           };
            dataGridRules.DataSource = replacer.Rules;
        }
        public void Setup()
        {
            // input file
            string inputFile = Path.Combine(TestContext.DeploymentDirectory, "input.txt");
            File.WriteAllText(inputFile, "asdf\n12s34\nASDF\n12S34");

            // output dir
            string outputDirName = "out_" + DateTime.Now.Ticks;
            outputFile = Path.Combine(
                TestContext.DeploymentDirectory, outputDirName, "input.txt");

            replacer = new Replacer
                           {
                               InputFiles = new ReplacableFiles(new List<string> { inputFile }),
                               OutputDirectoryName = outputDirName
                           };
        }