示例#1
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) {}
 }
 [Test] public void LastActionIsSetAsExpectedCellAttribute()
 {
     SetUpSUT("procedure");
     check.Check(CellOperationValue.Make(target.Value, new CellTreeLeaf("procedure"), new CellTree(), false), targetCell);
     Assert.AreEqual("blah blah", targetCell.Value.GetAttribute(CellAttribute.Folded));
 }
示例#3
0
 public static bool IsMatch(CheckOperator checkOperator, string input)
 {
     return(checkOperator.CanCheck(CellOperationValue.Make(new TypedValue(null)),
                                   TestUtils.CreateCell(input)));
 }
示例#4
0
 public void Check(TypedValue actualValue, Tree <Cell> expectedCell)
 {
     processor.Operate <CheckOperator>(
         CellOperationValue.Make(actualValue),
         expectedCell);
 }
示例#5
0
 public void Check(object systemUnderTest, Tree <Cell> memberName, Tree <Cell> parameters, Tree <Cell> expectedCell)
 {
     processor.Operate <CheckOperator>(
         CellOperationValue.Make(systemUnderTest, memberName, parameters),
         expectedCell);
 }