public void ShouldDisposeUnderlyingEnumerator() { var underlyingEnumerator = new TestEnumerator(); var valueInjectionEnumerator = new ValueInjectionEnumerator(underlyingEnumerator); valueInjectionEnumerator.Dispose(); Assert.True(underlyingEnumerator.DisposeCalled); }
public void ShouldDelegateReset() { var underlyingEnumerator = new TestEnumerator(); var valueInjectionEnumerator = new ValueInjectionEnumerator(underlyingEnumerator); valueInjectionEnumerator.Reset(); Assert.True(underlyingEnumerator.ResetCalled); }