public void GetExistingRandomDirectory()
{
using (var temp = new TempDirectory())
{
Assert.Null(Helper.GetExistingRandomDirectory(temp.Path));
string randomPath = Path.Combine(temp.Path, Path.GetRandomFileName(), Path.GetRandomFileName());
Directory.CreateDirectory(randomPath);
Assert.Equal(randomPath, Helper.GetExistingRandomDirectory(temp.Path));
}
}