public void Distinct_EvalDistinct_HappyPath_Last_ExpectDistinctResults() { //------------Setup for test-------------------------- var env = CreateEnvironmentWithData(); //------------Execute Test--------------------------- var modified = Distinct.evalDistinct(env, new List <string>() { "[[Rec(*).a]]" }, new List <string> { "[[Rec(*).a]]" }, 0, new List <string> { "[[Bec().a]]" }); //------------Assert Results------------------------- var res = CommonFunctions.evalResultToString(EvaluationFunctions.eval(modified, 0, false, "[[Bec(*).a]]")); Assert.AreEqual(res, "1,2,3"); }
public void AssignUnique(IEnumerable <string> distinctList, IEnumerable <string> valueList, IEnumerable <string> resList, int update) { var output = Distinct.evalDistinct(_env, distinctList, valueList, update, resList); _env = output; }