コード例 #1
0
        private static IEnumerator RefreshFiles()
        {
            MixedRealityToolkitFiles.RefreshFolders();
            var task = MixedRealityToolkitFiles.WaitForFolderRefresh();

            while (!task.IsCompleted)
            {
                yield return(null);
            }

            Assert.IsTrue(MixedRealityToolkitFiles.AreFoldersAvailable);
        }
コード例 #2
0
        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());
            }
        }