GetEnumerator() public static method

public static GetEnumerator ( IsolatedStorageScope scope ) : IEnumerator
scope IsolatedStorageScope
return IEnumerator
Exemplo n.º 1
0
        public void GetEnumerator_ThrowsForCurrent()
        {
            IEnumerator e = IsolatedStorageFile.GetEnumerator(IsolatedStorageScope.Assembly);

            Assert.Throws <InvalidOperationException>(() => e.Current);
            e.MoveNext();
            Assert.Throws <InvalidOperationException>(() => e.Current);
        }
Exemplo n.º 2
0
        public void GetEnumerator_NoOp()
        {
            IEnumerator e = IsolatedStorageFile.GetEnumerator(IsolatedStorageScope.Assembly);

            Assert.False(e.MoveNext(), "should have no items");

            // Reset shouldn't throw
            e.Reset();
        }