From ebed142cd58babdc605ffd04df65df05d183c24f Mon Sep 17 00:00:00 2001 From: Shannon Deminick Date: Thu, 21 Feb 2013 23:47:16 +0600 Subject: [PATCH] Another fix for file sys test --- src/Umbraco.Tests/IO/PhysicalFileSystemTests.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Tests/IO/PhysicalFileSystemTests.cs b/src/Umbraco.Tests/IO/PhysicalFileSystemTests.cs index 6c51acbe6e..d53f95e838 100644 --- a/src/Umbraco.Tests/IO/PhysicalFileSystemTests.cs +++ b/src/Umbraco.Tests/IO/PhysicalFileSystemTests.cs @@ -26,7 +26,13 @@ namespace Umbraco.Tests.IO [TearDown] public void TearDown() { - Directory.Delete(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "FileSysTests")); + var path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "FileSysTests"); + var files = Directory.GetFiles(path); + foreach (var f in files) + { + File.Delete(f); + } + Directory.Delete(path, true); } protected override string ConstructUrl(string path)