public void SearchTextExistsBeforeReplace()
        {
            var templateApi = new WordAPI(TemplatePath);

            foreach (var pair in FindAndReplacePairs)
            {
                Assert.IsTrue(templateApi.ContainsText(pair.Key, false), templatePreconditionError + TemplatePath);
            }
            templateApi.Close();
        }
 public void SearchTextDoesNotExistAfterReplace()
 {
     WordInterface = new WordAPI(TemplatePath, false);
     WordInterface.FindAndReplace(FindAndReplacePairs, false);
     foreach (var pair in FindAndReplacePairs)
     {
         Assert.IsFalse(WordInterface.ContainsText(pair.Key, false));
     }
     WordInterface.Close();
 }
 public void ReplaceTextExistsAfterReplace()
 {
     WordInterface = new WordAPI(TemplatePath, false);
     WordInterface.FindAndReplace(FindAndReplacePairs, false);
     foreach (var pair in FindAndReplacePairs)
     {
         Assert.IsTrue(WordInterface.ContainsText(pair.Value, false));
     }
     WordInterface.Close();
 }
        public void ReplaceTextDoesNotExistBeforeReplace()
        {
            var templateApi = new WordAPI(TemplatePath);

            foreach (var pair in FindAndReplacePairs)
            {
                Assert.IsFalse(templateApi.ContainsText(pair.Value, false), templatePreconditionError + TemplatePath);
            }
            templateApi.Close();
        }