Azavea.Open.DAO.CSV.Tests.CsvJoinTests.Init C# (CSharp) Method

Init() private method

private Init ( ) : void
return void
        public void Init()
        {
            // Reset the unit test data by copying the templates, since we don't know what any
            // other unit tests (or a previous run of this test) has done to the state of the files.
            foreach (string fileName in Directory.GetFiles("..\\..\\Tests\\", "*.csv"))
            {
                File.Delete(fileName);
            }
            foreach (string fileName in Directory.GetFiles("..\\..\\Tests\\Template\\", "*.csv"))
            {
                File.Copy(fileName, "..\\..\\Tests\\" + Path.GetFileName(fileName));
            }
        }