Author: spouliot
Date: 2006-07-19 21:13:24 -0400 (Wed, 19 Jul 2006)
New Revision: 62782
Modified:
trunk/mcs/class/System.Drawing/Test/System.Drawing.Imaging/ChangeLog
trunk/mcs/class/System.Drawing/Test/System.Drawing.Imaging/TestImageFormat.cs
Log:
2006-07-19 Sebastien Pouliot <[EMAIL PROTECTED]>
* TestImageFormat.cs: Added test cases for well known image format
(which returns a human readable name when the ImageFormat comes from
the static properties).
Modified: trunk/mcs/class/System.Drawing/Test/System.Drawing.Imaging/ChangeLog
===================================================================
--- trunk/mcs/class/System.Drawing/Test/System.Drawing.Imaging/ChangeLog
2006-07-20 01:12:42 UTC (rev 62781)
+++ trunk/mcs/class/System.Drawing/Test/System.Drawing.Imaging/ChangeLog
2006-07-20 01:13:24 UTC (rev 62782)
@@ -1,3 +1,9 @@
+2006-07-19 Sebastien Pouliot <[EMAIL PROTECTED]>
+
+ * TestImageFormat.cs: Added test cases for well known image format
+ (which returns a human readable name when the ImageFormat comes from
+ the static properties).
+
2006-06-30 Sebastien Pouliot <[EMAIL PROTECTED]>
* TestImageAttribute.cs: Fix namespace and split test for easier
Modified:
trunk/mcs/class/System.Drawing/Test/System.Drawing.Imaging/TestImageFormat.cs
===================================================================
---
trunk/mcs/class/System.Drawing/Test/System.Drawing.Imaging/TestImageFormat.cs
2006-07-20 01:12:42 UTC (rev 62781)
+++
trunk/mcs/class/System.Drawing/Test/System.Drawing.Imaging/TestImageFormat.cs
2006-07-20 01:13:24 UTC (rev 62782)
@@ -35,7 +35,7 @@
[TestFixture]
[SecurityPermission (SecurityAction.Deny, UnmanagedCode = true)]
- public class TestImageFormat {
+ public class ImageFormatTest {
private static ImageFormat BmpImageFormat = new ImageFormat
(new Guid ("b96b3cab-0728-11d3-9d7b-0000f81ef32e"));
private static ImageFormat EmfImageFormat = new ImageFormat
(new Guid ("b96b3cac-0728-11d3-9d7b-0000f81ef32e"));
@@ -81,6 +81,21 @@
}
[Test]
+ public void WellKnown_ToString ()
+ {
+ Assert.AreEqual ("Bmp", ImageFormat.Bmp.ToString
(),"ToStringTest#1");
+ Assert.AreEqual ("Emf", ImageFormat.Emf.ToString (),
"ToStringTest#2");
+ Assert.AreEqual ("Exif", ImageFormat.Exif.ToString (),
"ToStringTest#3");
+ Assert.AreEqual ("Gif", ImageFormat.Gif.ToString (),
"ToStringTest#4");
+ Assert.AreEqual ("Tiff", ImageFormat.Tiff.ToString (),
"ToStringTest#5");
+ Assert.AreEqual ("Png", ImageFormat.Png.ToString (),
"ToStringTest#6");
+ Assert.AreEqual ("MemoryBMP",
ImageFormat.MemoryBmp.ToString (), "ToStringTest#7");
+ Assert.AreEqual ("Icon", ImageFormat.Icon.ToString (),
"ToStringTest#8");
+ Assert.AreEqual ("Jpeg", ImageFormat.Jpeg.ToString (),
"ToStringTest#9");
+ Assert.AreEqual ("Wmf", ImageFormat.Wmf.ToString (),
"ToStringTest#10");
+ }
+
+ [Test]
public void TestEquals ()
{
Assert.IsTrue (BmpImageFormat.Equals (BmpImageFormat),
"Bmp-Bmp");
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches