Skip to content

Commit

Permalink
Merge pull request #12 from davschne-unity/test-teardown
Browse files Browse the repository at this point in the history
  • Loading branch information
francis-page authored Oct 2, 2023
2 parents 0898a80 + 379cb3a commit 0233b29
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions UnityDataTool.Tests/UnityDataToolTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,11 @@ public void OneTimeSetup()
[TearDown]
public void Teardown()
{
foreach (var file in new DirectoryInfo(m_TestOutputFolder).EnumerateFiles())
{
file.Delete();
}
var testDir = new DirectoryInfo(m_TestOutputFolder);
testDir.EnumerateFiles()
.ToList().ForEach(f => f.Delete());
testDir.EnumerateDirectories()
.ToList().ForEach(d => d.Delete(true));
}

[Test]
Expand Down

0 comments on commit 0233b29

Please sign in to comment.