From: Griffin C. <gc...@us...> - 2006-03-06 02:25:04
|
Update of /cvsroot/dotnetmock/dotnetmock/DotNetMock.Tests/Util In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10746/DotNetMock.Tests/Util Modified Files: StringUtilsTests.cs Log Message: - Merged in changes from Niklas Index: StringUtilsTests.cs =================================================================== RCS file: /cvsroot/dotnetmock/dotnetmock/DotNetMock.Tests/Util/StringUtilsTests.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** StringUtilsTests.cs 20 Feb 2005 09:26:50 -0000 1.1 --- StringUtilsTests.cs 6 Mar 2006 02:24:57 -0000 1.2 *************** *** 27,35 **** ); Assert.AreEqual( ! "3.4", StringUtils.FormatScalar(3.4) ); Assert.AreEqual( ! "[1, 'two', 3.4]", StringUtils.FormatScalar(new object[] { 1, "two", 3.4 }) ); --- 27,35 ---- ); Assert.AreEqual( ! ""+3.4+"", StringUtils.FormatScalar(3.4) ); Assert.AreEqual( ! "[1, 'two', "+3.4+"]", StringUtils.FormatScalar(new object[] { 1, "two", 3.4 }) ); *************** *** 38,42 **** { Assert.AreEqual( ! "1, 'two', 3.4", StringUtils.FormatArray(1, "two", 3.4) ); --- 38,42 ---- { Assert.AreEqual( ! "1, 'two', "+3.4+"", StringUtils.FormatArray(1, "two", 3.4) ); *************** *** 49,53 **** hash["c"]=3.4; Assert.AreEqual( ! "a=1, b='two', c=3.4", StringUtils.FormatCollection(hash) ); --- 49,53 ---- hash["c"]=3.4; Assert.AreEqual( ! "a=1, b='two', c="+3.4+"", StringUtils.FormatCollection(hash) ); *************** *** 60,64 **** list.Add(3.4); Assert.AreEqual( ! "1, 'two', 3.4", StringUtils.FormatCollection(list) ); --- 60,64 ---- list.Add(3.4); Assert.AreEqual( ! "1, 'two', "+3.4+"", StringUtils.FormatCollection(list) ); |