new test for enum equals
authorDietmar Maurer <dietmar@mono-cvs.ximian.com>
Mon, 18 Mar 2002 05:25:09 +0000 (05:25 -0000)
committerDietmar Maurer <dietmar@mono-cvs.ximian.com>
Mon, 18 Mar 2002 05:25:09 +0000 (05:25 -0000)
svn path=/trunk/mono/; revision=3178

mono/tests/enum3.cs [new file with mode: 0755]

diff --git a/mono/tests/enum3.cs b/mono/tests/enum3.cs
new file mode 100755 (executable)
index 0000000..6a4474d
--- /dev/null
@@ -0,0 +1,32 @@
+using System;
+
+namespace Test {
+
+enum TestingEnum {This, Is, A, Test};
+enum TestingEnum2 {This, Is, A, Test};
+
+public class test {
+       public static int Main () {
+               int num = 0;
+               
+               Enum e1 = new TestingEnum();
+               Enum e2 = new TestingEnum();
+               Enum e3 = new TestingEnum2();
+
+               ++num;
+               if (!e1.Equals(e2))
+                       return num;
+               
+               ++num;
+               if (e1.Equals(e3))
+                       return num;
+               
+               ++num;
+               if (TestingEnum.Test.Equals(TestingEnum2.Test))
+                       return num;
+               
+               return 0;
+       }
+}
+
+}