Exemple #1
0
 public void Initialize()
 {
     _enumeratorImplicitBehavior = new ReversibleEnumeratorImplicitBehaviorFixture <byte>(
         () => NumericalLineGenerator.GenerateFrom(128).ToReversibleEnumerable().GetEnumerator(),
         byte.MaxValue - 127,
         129);
 }
Exemple #2
0
 public void Initialize()
 {
     _enumeratorImplicitBehavior =
         new ReversibleEnumeratorImplicitBehaviorFixture <byte>(
             () => NumericalLineGenerator.GenerateFrom(128).ToReversibleEnumerable().Narrow <byte>(126, 130).GetEnumerator(),
             3, 3);
 }
Exemple #3
0
        public void Initialize()
        {
            var segment = NumericalSegmentGenerator.GenerateSegment(0, 10).ToReadonlyReversibleCollection();

            _enumeratorImplicitBehavior = new ReversibleEnumeratorImplicitBehaviorFixture <byte>(
                () => segment.GetEnumerator(),
                (byte)segment.Count,
                (byte)segment.Count);
        }