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