TryFixTests.cs 825 B

12345678910111213141516171819202122232425262728293031
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using NUnit.Framework;
  5. namespace SharpGLTF.Validation
  6. {
  7. public class TryFixTests
  8. {
  9. /*
  10. [Test]
  11. public void TryFixAnimationWithInvalidByteStride()
  12. {
  13. var path = System.IO.Path.Combine(TestFiles.RootDirectory, "teascroll_clubhouse_-_fountain_prop", "scene.gltf");
  14. Assert.Throws<LinkException>(() => Schema2.ModelRoot.Load(path));
  15. var mdl = Schema2.ModelRoot.Load(path, ValidationMode.TryFix);
  16. var vcontext = new ValidationResult(mdl, ValidationMode.Strict, true);
  17. mdl.ValidateReferences(vcontext.GetContext());
  18. mdl.Validate(vcontext.GetContext());
  19. mdl.WriteGLB();
  20. }*/
  21. }
  22. }