libgit2/libgit2sharp — pull request #88 by tclem (2011-11-17 18:03:10+00:00)
Title: Improve reliability in running unit tests

This fixes what has been a huge pain for me in running the libgit2sharp unit tests lately. I think the issue is that different test runners end up preventing the Resources directory from getting cleaned/deleted. You often end up having to run the test(s) 2 or 3 times before they will actually run. The solution in this commit is to create a unique resources directory for each test run while still trying to cleanup the directories from the previous run. If there are still issues, we could let the cleanup step gracefully fail (leaving behind the previous run temp dir) and defer that cleanup until the next time the tests are run.