Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / tests / enum3.cs
1 using System;
2
3 namespace Test {
4
5 enum TestingEnum {This, Is, A, Test};
6 enum TestingEnum2 {This, Is, A, Test};
7
8 public class test {
9         public static int Main () {
10                 int num = 0;
11                 
12                 Enum e1 = new TestingEnum();
13                 Enum e2 = new TestingEnum();
14                 Enum e3 = new TestingEnum2();
15
16                 ++num;
17                 if (!e1.Equals(e2))
18                         return num;
19                 
20                 ++num;
21                 if (e1.Equals(e3))
22                         return num;
23                 
24                 ++num;
25                 if (TestingEnum.Test.Equals(TestingEnum2.Test))
26                         return num;
27                 
28                 return 0;
29         }
30 }
31
32 }