static TestHelper()
{
s_rootDirectoryProperty = typeof(IsolatedStorageFile).GetProperty("RootDirectory", BindingFlags.NonPublic | BindingFlags.Instance);
s_roots = new List<string>();
string hash;
object identity;
Helper.GetDefaultIdentityAndHash(out identity, out hash, '.');
string userRoot = Helper.GetDataDirectory(IsolatedStorageScope.User);
string randomUserRoot = Helper.GetRandomDirectory(userRoot, IsolatedStorageScope.User);
s_roots.Add(Path.Combine(randomUserRoot, hash));
// Application scope doesn't go under a random dir
s_roots.Add(Path.Combine(userRoot, hash));
// https://github.com/dotnet/corefx/issues/12628
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
s_roots.Add(Helper.GetDataDirectory(IsolatedStorageScope.Machine));
}
// We don't expose Roaming yet
// Helper.GetDataDirectory(IsolatedStorageScope.Roaming);
}