public void LoadModelsFromBabylonJs() { TestContext.CurrentContext.AttachGltfValidatorLinks(); foreach (var f in TestFiles.GetBabylonJSModelsPaths()) { _LoadModel(f, true); } }
public void LoadModelsFromBabylonJs() { TestContext.CurrentContext.AttachShowDirLink(); TestContext.CurrentContext.AttachGltfValidatorLinks(); foreach (var f in TestFiles.GetBabylonJSModelsPaths()) { TestContext.Progress.WriteLine(f); _LoadModel(f, true); } }
public void FindDependencyFiles() { TestContext.CurrentContext.AttachGltfValidatorLinks(); foreach (var f in TestFiles.GetBabylonJSModelsPaths()) { TestContext.WriteLine(f); var dependencies = ModelRoot.GetSatellitePaths(f); foreach (var d in dependencies) { TestContext.WriteLine($" {d}"); } TestContext.WriteLine(); } }
public void LoadInvalidModelsFromBabylonJs() { TestContext.CurrentContext.AttachShowDirLink(); TestContext.CurrentContext.AttachGltfValidatorLinks(); foreach (var f in TestFiles.GetBabylonJSModelsPaths(false)) { TestContext.Progress.WriteLine(f); try { var model = ModelRoot.Load(f, Validation.ValidationMode.Strict); Assert.Fail($"{f} Should throw"); } catch (Exception ex) { TestContext.WriteLine(ex.Message); } } }