Blog.Common.Utils.Tests.Helpers.FileHelperTest.TestInit C# (CSharp) Method

TestInit() private method

private TestInit ( ) : void
return void
        public void TestInit()
        {
            _fileHelper = new FileHelper();
            _rootPath = Path.GetDirectoryName(Uri.UnescapeDataString(new UriBuilder(Assembly.GetExecutingAssembly().CodeBase).Path));
            
            if (Directory.Exists(_rootPath + @"\TestDir")) Directory.Delete(_rootPath + @"\TestDir", true);
            if (Directory.Exists(_rootPath + @"\TestFile")) Directory.Delete(_rootPath + @"\TestFile", true);
        }