GetEnumerator() public static méthode

public static GetEnumerator ( IsolatedStorageScope scope ) : IEnumerator
scope IsolatedStorageScope
Résultat IEnumerator
Exemple #1
0
        public void GetEnumerator_ThrowsForCurrent()
        {
            IEnumerator e = IsolatedStorageFile.GetEnumerator(IsolatedStorageScope.Assembly);

            Assert.Throws <InvalidOperationException>(() => e.Current);
            e.MoveNext();
            Assert.Throws <InvalidOperationException>(() => e.Current);
        }
Exemple #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();
        }