示例#1
0
        public void Initialize()
        {
            _sut = new Flatten();
            _sut.Result += _ => _fragments = new List<object>(_);

            _fragments = new List<object>();
        }
示例#2
0
        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;
        }
示例#3
0
        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;
        }