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)); }
public static bool IsMatch(CheckOperator checkOperator, string input) { return(checkOperator.CanCheck(CellOperationValue.Make(new TypedValue(null)), TestUtils.CreateCell(input))); }
public void Check(TypedValue actualValue, Tree <Cell> expectedCell) { processor.Operate <CheckOperator>( CellOperationValue.Make(actualValue), expectedCell); }
public void Check(object systemUnderTest, Tree <Cell> memberName, Tree <Cell> parameters, Tree <Cell> expectedCell) { processor.Operate <CheckOperator>( CellOperationValue.Make(systemUnderTest, memberName, parameters), expectedCell); }