Execute() 공개 메소드

public Execute ( IEnumerable arguments, ParsingContext context ) : CompileResult
arguments IEnumerable
context ParsingContext
리턴 ExcelFormulaParser.Engine.ExpressionGraph.CompileResult
 public void CountShouldIncludeEnumerableMembers()
 {
     var func = new Count();
     var args = FunctionsHelper.CreateArgs(1d, FunctionsHelper.CreateArgs(12, 13));
     var result = func.Execute(args, _parsingContext);
     Assert.AreEqual(3d, result.Result);
 }
 public void CountShouldReturnNumberOfNumericItems()
 {
     var func = new Count();
     var args = FunctionsHelper.CreateArgs(1d, 2m, 3, new DateTime(2012, 4, 1), "4");
     var result = func.Execute(args, _parsingContext);
     Assert.AreEqual(4d, result.Result);
 }
 public void CountShouldIgnoreHiddenValuesIfIgnoreHiddenValuesIsTrue()
 {
     var func = new Count();
     func.IgnoreHiddenValues = true;
     var args = FunctionsHelper.CreateArgs(1d, FunctionsHelper.CreateArgs(12, 13));
     args.ElementAt(0).SetExcelStateFlag(ExcelCellState.HiddenCell);
     var result = func.Execute(args, _parsingContext);
     Assert.AreEqual(2d, result.Result);
 }