* EnumTest.cs: add a test for IConvertible.ToType when converting
an enum to a string.
svn path=/trunk/mcs/; revision=147483
+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
}
}
+ [Test]
+ public void ConvertToStringType ()
+ {
+ Assert.AreEqual ("This", ((IConvertible) TestingEnum.This).ToType (typeof (string), null));
+ }
+
[Test]
public void TestToString ()
{