Changeset 457 for trunk/TestCase/SimpleTestCase
- Timestamp:
- Mar 6, 2008, 9:49:43 PM (17 years ago)
- Location:
- trunk/TestCase/SimpleTestCase
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/TestCase/SimpleTestCase/SimpleTestCase.ab
r438 r457 40 40 End Sub 41 41 42 Print "Please enter any key" 43 Dim a As Long 44 Input a 42 Print "Please Enter key" 43 System.Console.ReadLine() -
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.