projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6126c1
)
added custom format string test.
author
Dan Lewis
<dan@mono-cvs.ximian.com>
Mon, 11 Feb 2002 22:26:30 +0000
(22:26 -0000)
committer
Dan 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
patch
|
blob
|
history
diff --git
a/mcs/class/corlib/Test/System/Int32Test.cs
b/mcs/class/corlib/Test/System/Int32Test.cs
index 19c125681ceda6877791a5de5d1f4c03686acfef..9042fd18c43f6d65905af4311121fcc144c21671 100644
(file)
--- 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");
+ }
}
}