System.IO.IsolatedStorage.GetStoreTests.GetEnumerator_ThrowsForCurrent C# (CSharp) Méthode

GetEnumerator_ThrowsForCurrent() private méthode

private GetEnumerator_ThrowsForCurrent ( ) : void
Résultat void
        public void GetEnumerator_ThrowsForCurrent()
        {
            IEnumerator e = IsolatedStorageFile.GetEnumerator(IsolatedStorageScope.Assembly);
            Assert.Throws<InvalidOperationException>(() => e.Current);
            e.MoveNext();
            Assert.Throws<InvalidOperationException>(() => e.Current);
        }
    }