2010-02-19 Rodrigo Kumpera <rkumpera@novell.com>
[mono.git] / mono / tests / enum3.cs
blob6a4474d60cfa4f6382da6dc72fac12399122a28a
1 using System;
3 namespace Test {
5 enum TestingEnum {This, Is, A, Test};
6 enum TestingEnum2 {This, Is, A, Test};
8 public class test {
9 public static int Main () {
10 int num = 0;
12 Enum e1 = new TestingEnum();
13 Enum e2 = new TestingEnum();
14 Enum e3 = new TestingEnum2();
16 ++num;
17 if (!e1.Equals(e2))
18 return num;
20 ++num;
21 if (e1.Equals(e3))
22 return num;
24 ++num;
25 if (TestingEnum.Test.Equals(TestingEnum2.Test))
26 return num;
28 return 0;