Example #1
0
        public void TestAccessCurrentWithoutMove()
        {
            var entries = new LogBufferList();

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