Пример #1
0
 public void SumSqShouldNoCountTrueTrueInArray()
 {
     var func = new Sumsq();
     var args = FunctionsHelper.CreateArgs(FunctionsHelper.CreateArgs(2, 4, true));
     var result = func.Execute(args, _parsingContext);
     Assert.AreEqual(20d, result.Result);
 }
Пример #2
0
 public void SumSqShouldIncludeTrueAsOne()
 {
     var func = new Sumsq();
     var args = FunctionsHelper.CreateArgs(2, 4, true);
     var result = func.Execute(args, _parsingContext);
     Assert.AreEqual(21d, result.Result);
 }