Ejemplo n.º 1
0
 public void GetEnumerator()
 {
     using (var enumerator = _adapter.GetEnumerator())
     {
         Assert.That(enumerator.MoveNext(), Is.True);
         Assert.That(enumerator.Current, Is.EqualTo("1"));
         Assert.That(enumerator.MoveNext(), Is.True);
         Assert.That(enumerator.Current, Is.EqualTo("2"));
         Assert.That(enumerator.MoveNext(), Is.True);
         Assert.That(enumerator.Current, Is.EqualTo("3"));
         Assert.That(enumerator.MoveNext(), Is.False);
     }
 }