public void FormulaEvaluatorLibraryTestBench() { string objectAbsPath = "/@_Lib_/@TestBenches/@RollingWheel"; Assert.True(File.Exists(this.mgaFile), "Failed to generate the mga."); try { FormulaEvaluateRunner.RunFormulaEvaluate(mgaFile, objectAbsPath, true); } catch (COMException err) { Assert.True(err.Message.Contains("Cannot run FormulaEvaluator on Library Objects.")); } }
public void FormulaEvaluatorLibraryComponent() { string objectAbsPath = "/@_Lib_/@ModelicaImports/@Damper"; Assert.True(File.Exists(this.mgaFile), "Failed to generate the mga."); try { FormulaEvaluateRunner.RunFormulaEvaluate(mgaFile, objectAbsPath, true); } catch (COMException err) { Assert.True(err.Message.Contains("Cannot run FormulaEvaluator on Library Objects.")); } }