tsrc/conf/CVIMPSTStorageContactSorter_UT.cfg
branchRCL_3
changeset 24 2b4be3554d30
equal deleted inserted replaced
23:9a48e301e94b 24:2b4be3554d30
       
     1 [Define]
       
     2 
       
     3 [Enddefine]
       
     4 
       
     5 // --- Test Case 1, tests NewL()
       
     6 
       
     7 [Test]
       
     8 title 1.CreateSorter
       
     9 create CVIMPSTStorageContactSorter_UT foobar
       
    10 foobar CreateSorter 
       
    11 delete foobar
       
    12 [Endtest] 
       
    13 
       
    14 // --- Test Case 2-3, tests SetSortAlgorithm()
       
    15 
       
    16 [Test]
       
    17 title 2.SelectAlgorithm
       
    18 create CVIMPSTStorageContactSorter_UT foobar
       
    19 foobar SelectAlgorithm 1 
       
    20 delete foobar
       
    21 [Endtest] 
       
    22 
       
    23 [Test]
       
    24 title 3.SelectAlgorithm
       
    25 create CVIMPSTStorageContactSorter_UT foobar
       
    26 foobar SelectAlgorithm 2 
       
    27 delete foobar
       
    28 [Endtest] 
       
    29 
       
    30 // --- Test Cases 4-6, tests Sort()
       
    31 
       
    32 [Test]
       
    33 title 4.DoSort
       
    34 create CVIMPSTStorageContactSorter_UT foobar
       
    35 foobar DoSort alpha
       
    36 delete foobar
       
    37 [Endtest] 
       
    38 
       
    39 [Test]
       
    40 title 5.DoSort
       
    41 create CVIMPSTStorageContactSorter_UT foobar
       
    42 foobar DoSort presence
       
    43 delete foobar
       
    44 [Endtest] 
       
    45 
       
    46 [Test]
       
    47 title 6.DoSort
       
    48 create CVIMPSTStorageContactSorter_UT foobar
       
    49 foobar DoSort default
       
    50 delete foobar
       
    51 [Endtest] 
       
    52 
       
    53 // --- Test Cases 7-11, Compare()
       
    54 
       
    55 [Test]
       
    56 title 7.CompareContacts 2 valid contacts
       
    57 create CVIMPSTStorageContactSorter_UT foobar
       
    58 foobar CompareContacts 2validcontacts
       
    59 delete foobar
       
    60 [Endtest] 
       
    61 
       
    62 [Test]
       
    63 title 8.CompareContacts 1 valid contact
       
    64 create CVIMPSTStorageContactSorter_UT foobar
       
    65 foobar CompareContacts 1validcontact
       
    66 delete foobar
       
    67 [Endtest] 
       
    68 
       
    69 [Test]
       
    70 title 9.CompareContacts 1 null contact
       
    71 create CVIMPSTStorageContactSorter_UT foobar
       
    72 foobar CompareContacts 1nullcontact
       
    73 delete foobar
       
    74 [Endtest] 
       
    75 
       
    76 [Test]
       
    77 title 10.CompareContacts 2 null contacts
       
    78 create CVIMPSTStorageContactSorter_UT foobar
       
    79 foobar CompareContacts 2nullcontacts
       
    80 delete foobar
       
    81 [Endtest] 
       
    82 
       
    83 [Test]
       
    84 title 11.CompareContacts same contacts
       
    85 create CVIMPSTStorageContactSorter_UT foobar
       
    86 foobar CompareContacts samecontacts
       
    87 delete foobar
       
    88 [Endtest]