public Execute ( IEnumerable |
||
arguments | IEnumerable |
|
context | ParsingContext | |
Результат |
public void ProductShouldIgnoreHiddenValuesIfIgnoreHiddenIsTrue() { var func = new Product(); func.IgnoreHiddenValues = true; var args = FunctionsHelper.CreateArgs(2d, 2d, FunctionsHelper.CreateArgs(4d, 2d)); args.ElementAt(1).SetExcelStateFlag(ExcelCellState.HiddenCell); var result = func.Execute(args, _parsingContext); Assert.AreEqual(16d, result.Result); }
public void ProductShouldMultiplyArguments() { var func = new Product(); var args = FunctionsHelper.CreateArgs(2d, 2d, 4d); var result = func.Execute(args, _parsingContext); Assert.AreEqual(16d, result.Result); }
public void ProductShouldHandleFirstItemIsEnumerable() { var func = new Product(); var args = FunctionsHelper.CreateArgs(FunctionsHelper.CreateArgs(4d, 2d), 2d, 2d); var result = func.Execute(args, _parsingContext); Assert.AreEqual(32d, result.Result); }