Example #1
0
        public void LoadCompatibilityModelTest(int idx)
        {
            var filePath = TestFiles.GetCompatibilityFilePath(idx);

            var model = _LoadModel(filePath);

            Assert.NotNull(model);
        }
Example #2
0
        public void LoadInvalidModelsTest(int idx)
        {
            var filePath = TestFiles.GetCompatibilityFilePath(idx);

            try
            {
                ModelRoot.Load(filePath);
                Assert.Fail("Did not throw!");
            }
            catch (ModelException ex)
            {
                TestContext.WriteLine($"{filePath} threw {ex.Message}");
            }
        }