diff options
author | Dan Lewis <dan@mono-cvs.ximian.com> | 2002-02-12 01:26:30 +0300 |
---|---|---|
committer | Dan Lewis <dan@mono-cvs.ximian.com> | 2002-02-12 01:26:30 +0300 |
commit | 09fbbe01d71afd63d3831d84eb81fcdd8b3cfee1 (patch) | |
tree | ece1d1e1c4e32904c4e6ee2178a6da0f64d5813a | |
parent | a6126c15ea1e0fd9becc4bfadcfd7538f777e5d8 (diff) |
added custom format string test.
svn path=/trunk/mcs/; revision=2339
-rw-r--r-- | mcs/class/corlib/Test/System/Int32Test.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mcs/class/corlib/Test/System/Int32Test.cs b/mcs/class/corlib/Test/System/Int32Test.cs index 19c125681ce..9042fd18c43 100644 --- a/mcs/class/corlib/Test/System/Int32Test.cs +++ b/mcs/class/corlib/Test/System/Int32Test.cs @@ -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"); + } } } |