public void TestAccessCurrentWithoutMove() { var entries = new LogBufferList(); using (var enumerator = entries.GetEnumerator()) { new Action(() => { var unused = enumerator.Current; }).Should().Throw <InvalidOperationException>(); } }