* DelegateTest.cs: Add a test for GetHashCode ().
svn path=/trunk/mcs/; revision=146904
+2009-11-25 Zoltan Varga <vargaz@gmail.com>
+
+ * DelegateTest.cs: Add a test for GetHashCode ().
+
2009-11-24 Jb Evain <jbevain@novell.com>
* ArrayTest.cs: test that we don't allow the use of the IList indexer
Assert.AreEqual (10, d (5));
}
#endif
+
+ [Test]
+ public void GetHashCode_Constant () {
+ Action del = delegate {
+ };
+ int hc1 = del.GetHashCode ();
+ del ();
+ int hc2 = del.GetHashCode ();
+ Assert.AreEqual (hc1, hc2);
+ }
+
delegate string FooDelegate (Iface iface, string s);
delegate string FooDelegate2 (B b, string s);