[System.Windows.Forms] Disable failing test
[mono-project.git] / mcs / tests / test-anon-105.cs
blob6789b74d17082c941c45b950b0c8a308cbeec1a6
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 public static void Main ()
37 Foo foo = new Foo (3);
38 foreach (Foo bar in foo.Test (new Foo (8)))
39 Console.WriteLine (bar);