public void Dispose() { if (Directory.Exists(_rootPath + @"\TestDir")) Directory.Delete(_rootPath + @"\TestDir", true); if (Directory.Exists(_rootPath + @"\TestFile")) Directory.Delete(_rootPath + @"\TestFile", true); } }