Ejemplo n.º 1
0
        public void GetEnumerator_NotReEnumerableTest()
        {
            int count = 0;
            reader = CreateReader(builder.BuildStream());
            foreach (IMp3StreamRegion region in reader)
            {
                count++;
            }

            reader.GetEnumerator().MoveNext();
        }
Ejemplo n.º 2
0
        public void GetEnumerator_NotReentrantTest()
        {
            builder.AddFrame(MpegVersion.V1, MpegLayer.Layer3, false, 0, 0);
            builder.AddFrame(MpegVersion.V1, MpegLayer.Layer3, false, 0, 0);
            builder.AddFrame(MpegVersion.V1, MpegLayer.Layer3, false, 0, 0);

            int count = 0;
            reader = CreateReader(builder.BuildStream());
            foreach (IMp3StreamRegion region in reader)
            {
                if (count == 1) break;
                count++;
            }

            object o = reader.GetEnumerator().MoveNext();
        }