Changeset 457 for trunk/TestCase/SimpleTestCase/StringBuilderTest.ab
- Timestamp:
- Mar 6, 2008, 9:49:43 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/TestCase/SimpleTestCase/StringBuilderTest.ab
r299 r457 9 9 Sub TestMain() 10 10 Dim sb = New StringBuilder("Hello") 11 UnitTest("StringBuilder - Constractor & ToString", sb.ToString ="Hello")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")11 UnitTest("StringBuilder - Constractor & ToString", sb.ToString, "Hello") 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") 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 End Sub 21 21
Note:
See TracChangeset
for help on using the changeset viewer.