- Timestamp:
- Nov 9, 2008, 2:36:29 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/ablib/TestCase/SimpleTestCase/StringBuilderTest.ab
r468 r656 9 9 Sub TestMain() 10 10 Dim sb = New StringBuilder("Hello") 11 UnitTest("StringBuilder - Constractor & ToString", sb.ToString , "Hello")11 UnitTest("StringBuilder - Constractor & ToString", sb.ToString(), "Hello") 12 12 UnitTest("StringBuilder.ToString(index, count)", sb.ToString(1, 3), "ell") 13 UnitTest("StringBuilder.Append", sb.Append("StringBuilder").ToString , "HelloStringBuilder")14 UnitTest("StringBuilder.Insert (String)", sb.Insert(5, ", ").ToString , "Hello, StringBuilder")13 UnitTest("StringBuilder.Append", sb.Append("StringBuilder").ToString(), "HelloStringBuilder") 14 UnitTest("StringBuilder.Insert (String)", sb.Insert(5, ", ").ToString(), "Hello, StringBuilder") 15 15 sb.Length = 0 16 UnitTest("StringBuilder.Length = 0", sb.ToString , "")16 UnitTest("StringBuilder.Length = 0", sb.ToString(), "") 17 17 sb.Append("でてこいでてこいいけのこい") 18 18 sb.Replace("こい", "いけ").Replace("いけ", "こい") 19 UnitTest("StringBuilder.Replace (String)", sb.ToString , "でてこいでてこいこいのこい")19 UnitTest("StringBuilder.Replace (String)", sb.ToString(), "でてこいでてこいこいのこい") 20 20 sb.Length = 0 21 21 sb.Append(123) 22 UnitTest("StringBuilder.Append (Long)", sb.ToString , "123")22 UnitTest("StringBuilder.Append (Long)", sb.ToString(), "123") 23 23 End Sub 24 24
Note:
See TracChangeset
for help on using the changeset viewer.