Example #1
0
        public void LoadInvalidModelsFromBabylonJs()
        {
            TestContext.CurrentContext.AttachShowDirLink();
            TestContext.CurrentContext.AttachGltfValidatorLinks();

            foreach (var f in TestFiles.GetBabylonJSInvalidModelsPaths())
            {
                TestContext.Progress.WriteLine(f);

                try
                {
                    var model = ModelRoot.Load(f);
                    Assert.Fail("Should throw");
                }
                catch (Exception ex)
                {
                    TestContext.WriteLine(ex.Message);
                }
            }
        }