public void Initialize() { _sut = new Flatten(); _sut.Result += _ => _fragments = new List<object>(_); _fragments = new List<object>(); }
public EqualidatorFlow(bool treatAllIEnumerablesAlike) { // Build var flattenA = new Flatten(treatAllIEnumerablesAlike); var flattenB = new Flatten(treatAllIEnumerablesAlike); var join = new Join<IEnumerable<object>, IEnumerable<object>>(); var check = new Check_equality(); // Bind _process += t => flattenA.Process(t.Item1); _process += t => flattenB.Process(t.Item2); flattenA.Result += join.Input1; flattenB.Result += join.Input2; join.Output += check.Process; }
public EqualidatorFlow(bool treatAllIEnumerablesAlike) { // Build var flattenA = new Flatten(treatAllIEnumerablesAlike); var flattenB = new Flatten(treatAllIEnumerablesAlike); var join = new Join <IEnumerable <object>, IEnumerable <object> >(); var check = new Check_equality(); // Bind _process += t => flattenA.Process(t.Item1); _process += t => flattenB.Process(t.Item2); flattenA.Result += join.Input1; flattenB.Result += join.Input2; join.Output += check.Process; }