Ignore:
Timestamp:
Nov 9, 2008, 2:36:29 PM (16 years ago)
Author:
イグトランス (egtra)
Message:

文字列比較のテストを3引数版UnitTestの呼出に変更

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/ablib/TestCase/SimpleTestCase/StringBuilderTest.ab

    r468 r656  
    99Sub TestMain()
    1010    Dim sb = New StringBuilder("Hello")
    11     UnitTest("StringBuilder - Constractor & ToString", sb.ToString, "Hello")
     11    UnitTest("StringBuilder - Constractor & ToString", sb.ToString(), "Hello")
    1212    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")
    1515    sb.Length = 0
    16     UnitTest("StringBuilder.Length = 0", sb.ToString, "")
     16    UnitTest("StringBuilder.Length = 0", sb.ToString(), "")
    1717    sb.Append("でてこいでてこいいけのこい")
    1818    sb.Replace("こい", "いけ").Replace("いけ", "こい")
    19     UnitTest("StringBuilder.Replace (String)", sb.ToString, "でてこいでてこいこいのこい")
     19    UnitTest("StringBuilder.Replace (String)", sb.ToString(), "でてこいでてこいこいのこい")
    2020    sb.Length = 0
    2121    sb.Append(123)
    22     UnitTest("StringBuilder.Append (Long)", sb.ToString, "123")
     22    UnitTest("StringBuilder.Append (Long)", sb.ToString(), "123")
    2323End Sub
    2424
Note: See TracChangeset for help on using the changeset viewer.