remove NotWorking
[mcs.git] / tests / gtest-anon-5.cs
blob258dd873ff0909ac3e73a012cf91a7542cdf98ce
1 using System;
2 using System.Collections.Generic;
4 public delegate void Hello ();
6 struct Foo
8 public int ID;
10 public Foo (int id)
12 this.ID = id;
15 public IEnumerable<Foo> Test (Foo foo)
17 yield return this;
18 yield return foo;
21 public void Hello (int value)
23 if (ID != value)
24 throw new InvalidOperationException ();
27 public override string ToString ()
29 return String.Format ("Foo ({0})", ID);
33 class X
35 static void Main ()
37 Foo foo = new Foo (3);
38 foreach (Foo bar in foo.Test (new Foo (8)))
39 Console.WriteLine (bar);