| // The documents directory | // The documents directory | ||||
| List<string> steps = directory_executing_assembly.Split('\\').ToList(); | List<string> steps = directory_executing_assembly.Split('\\').ToList(); | ||||
| steps.RemoveRange(steps.Count() - 3, 3); | |||||
| steps.RemoveRange(steps.Count() - 2, 2); | |||||
| directory_documents = String.Join("\\", steps) + "\\documents\\"; | directory_documents = String.Join("\\", steps) + "\\documents\\"; | ||||
| // directory_documents = "C:\\Users\\Faizan\\DocX\\UnitTests\\documents\\"; | |||||
| Setup(directory_documents); | |||||
| } | } | ||||
| private static void Setup(string path) | |||||
| { | |||||
| if (!Directory.Exists(path)) | |||||
| { | |||||
| Directory.CreateDirectory(path); | |||||
| } | |||||
| } | |||||
| [TestMethod] | [TestMethod] | ||||
| public void Test_Pattern_Replacement() | public void Test_Pattern_Replacement() | ||||
| { | { |