private static IEnumerator RefreshFiles() { MixedRealityToolkitFiles.RefreshFolders(); var task = MixedRealityToolkitFiles.WaitForFolderRefresh(); while (!task.IsCompleted) { yield return(null); } Assert.IsTrue(MixedRealityToolkitFiles.AreFoldersAvailable); }
public void TestGetDirectories() { MixedRealityToolkitModuleType[] moduleTypes = new MixedRealityToolkitModuleType[] { MixedRealityToolkitModuleType.Core, MixedRealityToolkitModuleType.Providers, MixedRealityToolkitModuleType.Services, MixedRealityToolkitModuleType.SDK, MixedRealityToolkitModuleType.Examples, MixedRealityToolkitModuleType.Tests, MixedRealityToolkitModuleType.Extensions, MixedRealityToolkitModuleType.Tools, }; MixedRealityToolkitFiles.RefreshFolders(); foreach (var moduleType in moduleTypes) { // Validate that each module has a corresponding found folder Assert.IsTrue(MixedRealityToolkitFiles.GetDirectories(moduleType).Any()); } }