<p>I have an Enumerable array</p>

<pre><code>int meas[] = new double[] {3, 6, 9, 12, 15, 18};
</code></pre>

<p>On each successive call to the mock's method that I'm testing I want to return a value from that array.</p>

<pre><code>using(_mocks.Record()) {
  Expect.Call(mocked_class.GetValue()).Return(meas); 
}
using(_mocks.Playback()) {
  foreach(var i in meas)
    Assert.AreEqual(i, mocked_class.GetValue();    
}
</code></pre>

<p>Does anyone have an idea how I can do this?</p>

IMHO, yield will handle this.
Link
.
Something like:
```
```
get_next() {
  foreach( float x in meas ) {
    yield x;
  }
}
```
```