added custom format string test.
authorDan Lewis <dan@mono-cvs.ximian.com>
Mon, 11 Feb 2002 22:26:30 +0000 (22:26 -0000)
committerDan Lewis <dan@mono-cvs.ximian.com>
Mon, 11 Feb 2002 22:26:30 +0000 (22:26 -0000)
svn path=/trunk/mcs/; revision=2339

mcs/class/corlib/Test/System/Int32Test.cs

index 19c125681ceda6877791a5de5d1f4c03686acfef..9042fd18c43f6d65905af4311121fcc144c21671 100644 (file)
@@ -200,6 +200,16 @@ public class Int32Test : TestCase
                        Assert(typeof(FormatException) == e.GetType());
                }
        }
+
+       public void TestCustomToString()
+       {
+               // culture sensitive?
+
+               int i = 123;
+
+               Assert ("Custom format string 00000", i.ToString ("00000") == "00123");
+               Assert ("Custom format string ####", i.ToString ("####") == "123");
+       }
 }
 
 }