public static bool IsMatch(CompareOperator <Cell> compareOperator, string value) { var processor = new CellProcessorBase(); processor.AddOperator(new CompareDefault()); return(compareOperator.CanCompare(new TypedValue(null, typeof(object)), TestUtils.CreateCell(value))); }
[SetUp] public void SetUp() { processor = new CellProcessorBase(); processor.AddOperator(new TestParseInterpreter()); execute = new ExecuteStoryTest(processor, (t, c) => {}); tables = new CellTree(new CellTree(new CellTree("myfixture"))); }
public static bool IsMatch(ExecuteCommand command, ExecuteOperator<Cell> executor, Tree<Cell> parameters) { var processor = new CellProcessorBase(); processor.AddOperator(new ParseMemberName()); ((CellOperator) executor).Processor = processor; return executor.CanExecute(new TypedValue(new ExecuteContext(command, null, new TypedValue("stuff"))), parameters); }
public static bool IsMatch(ExecuteCommand command, ExecuteOperator <Cell> executor, Tree <Cell> parameters) { var processor = new CellProcessorBase(); processor.AddOperator(new ParseMemberName()); ((CellOperator)executor).Processor = processor; return(executor.CanExecute(new TypedValue(new ExecuteContext(command, new TypedValue("stuff"))), parameters)); }
[Test] public void ComposesAsRaw() { var processor = new CellProcessorBase(); processor.AddOperator(new TestCompose()); var showAs = new ComposeShowAsOperator { Processor = processor }; var subject = new ComposeShowAsOperator(new [] { CellAttribute.Raw }, "stuff"); var result = showAs.Compose(new TypedValue(subject)); Assert.IsTrue(result.Value.HasAttribute(CellAttribute.Raw)); }
public static bool IsMatch(ExecuteCommand command, InvokeCommandBase executor, Tree<Cell> parameters) { var processor = new CellProcessorBase(); processor.AddOperator(new ParseMemberName()); executor.Processor = processor; return executor.CanExecute(new ExecuteContext(command, new TypedValue("stuff")), new ExecuteParameters(parameters)); }
public static bool IsMatch(CompareOperator<Cell> compareOperator, string value) { var processor = new CellProcessorBase(); processor.AddOperator(new CompareDefault()); return compareOperator.CanCompare(new TypedValue(null, typeof(object)), TestUtils.CreateCell(value)); }