remove NotWorking
[mcs.git] / tests / test-705.cs
blob1e1d3eae12da167df6f88b445d1f2351af44e04f
1 using System;
2 using System.Collections.Generic;
4 class Test
6 public static int Counter = 0;
8 public struct Nested : IDisposable
10 public int Current { get { return 1; } }
11 public bool MoveNext ()
13 return false;
16 public void Reset ()
20 void IDisposable.Dispose()
22 Counter++;
25 public void Dispose()
27 throw new ApplicationException ("error");
31 public Nested GetEnumerator ()
33 return new Nested ();
37 public static class Program
39 public static int Main ()
41 Test t = new Test ();
43 foreach (int i in t) {
46 if (Test.Counter != 1)
47 return 1;
49 return 0;