public void GetEnumerator_ThrowsForCurrent() { IEnumerator e = IsolatedStorageFile.GetEnumerator(IsolatedStorageScope.Assembly); Assert.Throws <InvalidOperationException>(() => e.Current); e.MoveNext(); Assert.Throws <InvalidOperationException>(() => e.Current); }
public void GetEnumerator_NoOp() { IEnumerator e = IsolatedStorageFile.GetEnumerator(IsolatedStorageScope.Assembly); Assert.False(e.MoveNext(), "should have no items"); // Reset shouldn't throw e.Reset(); }