Exemple #1
0
 public object ExecuteEmbeddedMethod(Parse theCells)
 {
     try {
         CellRange cells = CellRange.GetMethodCellRange(theCells, 0);
         return
             (CellOperation.Invoke(this, new CellRange(MethodCells(cells)), new CellRange(ParameterCells(cells)), theCells.More).
              Value);
     }
     catch (ParseException <Cell> e) {
         TestStatus.MarkException(e.Subject, e.InnerException);
         throw new IgnoredException();
     }
 }
Exemple #2
0
 public void Check(Parse theCells)
 {
     try {
         CellRange methodCells = CellRange.GetMethodCellRange(theCells, 1);
         try {
             fixture.DoCheckOperation(theCells.Last, methodCells);
         }
         catch (MemberMissingException e) {
             fixture.TestStatus.MarkException(theCells.More, e);
         }
         catch (Exception e) {
             fixture.TestStatus.MarkException(theCells.Last, e);
         }
     }
     catch (IgnoredException) {}
 }
Exemple #3
0
 void DoCheckOperation(Parse theCells, bool isVolatile)
 {
     try {
         CellRange methodCells = CellRange.GetMethodCellRange(theCells, 1);
         try {
             processor.Operate <CheckOperator>(
                 CellOperationValue.Make(
                     fixture,
                     fixture.MethodRowSelector.SelectMethodCells(methodCells),
                     fixture.MethodRowSelector.SelectParameterCells(methodCells),
                     isVolatile),
                 theCells.Last);
         }
         catch (MemberMissingException e) {
             processor.TestStatus.MarkException(theCells.More, e);
         }
         catch (Exception e) {
             processor.TestStatus.MarkException(theCells.Last, e);
         }
     }
     catch (IgnoredException) {}
 }