public void FullEnumeration__When_SourceIsEmptyInitially_When_ItemsAreAdded__AndPositionIsReset__MustReturnEveryItem_InTheOriginalSequence(
            IList <string> values)
        {
            var source = new List <string>();

            target = new WritingEnumerator <string>(source);

            foreach (var value in values)
            {
                target.Add(value);
            }

            target.ResetPosition();

            foreach (var value in values)
            {
                target.MoveNext();
                Assert.AreEqual(value, target.Current);
            }
        }
Ejemplo n.º 2
0
 public void Dispose()
 {
     copyManager.ResetPosition();
 }