소스 검색

removed useless try-catch

vpenades 2 달 전
부모
커밋
e02e30f1bf
1개의 변경된 파일1개의 추가작업 그리고 9개의 파일을 삭제
  1. 1 9
      tests/SharpGLTF.Core.Tests/Schema2/LoadAndSave/LoadSampleTests.cs

+ 1 - 9
tests/SharpGLTF.Core.Tests/Schema2/LoadAndSave/LoadSampleTests.cs

@@ -38,15 +38,7 @@ namespace SharpGLTF.Schema2.LoadAndSave
 
 
             var perf = System.Diagnostics.Stopwatch.StartNew();
             var perf = System.Diagnostics.Stopwatch.StartNew();
 
 
-            try
-            {
-                model = ModelRoot.Load(f, settings);                
-            }
-            catch (Exception ex)
-            {
-                TestContext.Progress.WriteLine($"Failed {f.ToShortDisplayPath()}");
-                Assert.Fail(ex.Message);
-            }
+            model = ModelRoot.Load(f, settings);
 
 
             Assert.That(model, Is.Not.Null);
             Assert.That(model, Is.Not.Null);