コード例 #1
0
 private void ExecuteTestComponent(TestComponent component, IDictionary state, string line)
 {
     try {
         component.Execute(MyFormulaEngine, state);
     } catch (Exception ex) {
         string[] arr = new string[3 - 2];
         arr[0] = line;
         arr[1] = ex.ToString();
         arr[2] = new string('-', 80);
         string msg = string.Join(System.Environment.NewLine, arr);
         Assert.Fail(msg);
     }
 }