remove NotWorking
[mcs.git] / tests / test-165.cs
blob6bfbfe4455998343c4624f98a8622a4906ce0ef5
1 using System;
3 public class Testing
4 {
5 enum Fruit { Apple, Banana, Cherry };
7 static int TestEnumInit (Fruit f)
9 Fruit [] testedFruits = { f };
11 if (f != Fruit.Apple)
12 return 1;
13 return 0;
16 public static int Main()
18 Fruit[] pieFillings = { Fruit.Apple, Fruit.Banana, Fruit.Cherry };
20 if (pieFillings [0] != Fruit.Apple)
21 return 1;
22 if (pieFillings [1] != Fruit.Banana)
23 return 2;
24 if (pieFillings [2] != Fruit.Cherry)
25 return 3;
27 if (TestEnumInit (Fruit.Apple) != 0)
28 return 4;
30 return 0;