* TestFont.cs: Add test case for GetHashCode from Jonathan Pobst
for bug #351647
svn path=/trunk/mcs/; revision=92451
+2008-01-08 Sebastien Pouliot <sebastien@ximian.com>
+
+ * TestFont.cs: Add test case for GetHashCode from Jonathan Pobst
+ for bug #351647
+
2007-12-19 Sebastien Pouliot <sebastien@ximian.com>
* TestGraphics.cs: Add test case on TransformPoints for #349800.
}
}
}
+
+ [Test]
+ public void FontUniqueHashCode ()
+ {
+ Font f1 = new Font ("Arial", 14);
+ Font f2 = new Font ("Arial", 12);
+ Font f3 = new Font (f1, FontStyle.Bold);
+
+ Assert.IsFalse (f1.GetHashCode () == f2.GetHashCode (), "1) Fonts with different sizes should have different HashCodes");
+ Assert.IsFalse (f1.GetHashCode () == f3.GetHashCode (), "2) Fonts with different styles should have different HashCodes");
+ }
}
}