2009-12-02 Jb Evain <jbevain@novell.com>
authorJb Evain <jbevain@gmail.com>
Wed, 2 Dec 2009 18:39:02 +0000 (18:39 -0000)
committerJb Evain <jbevain@gmail.com>
Wed, 2 Dec 2009 18:39:02 +0000 (18:39 -0000)
* EnumTest.cs: add a test for IConvertible.ToType when converting
an enum to a string.

svn path=/trunk/mcs/; revision=147483

mcs/class/corlib/Test/System/ChangeLog
mcs/class/corlib/Test/System/EnumTest.cs

index ef3303ab7283c0125df324ecfab2a0b3544c5678..d09b001fc4402ca30b54419f63e7b84c7b39dccf 100644 (file)
@@ -1,3 +1,8 @@
+2009-12-02  Jb Evain  <jbevain@novell.com>
+
+       * EnumTest.cs: add a test for IConvertible.ToType when converting
+       an enum to a string.
+
 2009-12-02  Jb Evain  <jbevain@novell.com>
 
        * AttributeTest.cs: add tests for retrieving custom attributes
index e5b1e23752864f1def56f480c30fae2c09e3dc9c..c938fc902db3e36eca1142ee646539aba09a5726 100644 (file)
@@ -787,6 +787,12 @@ namespace MonoTests.System
                        }
                }
 
+               [Test]
+               public void ConvertToStringType ()
+               {
+                       Assert.AreEqual ("This", ((IConvertible) TestingEnum.This).ToType (typeof (string), null));
+               }
+
                [Test]
                public void TestToString ()
                {