public void TestInvalidPath(string path) { foreach (string basePath in basePaths) { string fullPath = Path.Combine(basePath, path); Assert.False(MixedRealityToolkitFiles.FindMatchingModule(fullPath, out MixedRealityToolkitModuleType module)); } }
public void TestValidPath(string path, MixedRealityToolkitModuleType expectedModule) { foreach (string basePath in basePaths) { string fullPath = Path.Combine(basePath, path); Assert.True(MixedRealityToolkitFiles.FindMatchingModule(fullPath, out MixedRealityToolkitModuleType module)); Assert.AreEqual(module, expectedModule); } }