tsrc/conf/CVIMPSTStorageContactSorter_UT.cfg
branchRCL_3
changeset 30 2b4be3554d30
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tsrc/conf/CVIMPSTStorageContactSorter_UT.cfg	Tue Sep 14 20:56:13 2010 +0300
@@ -0,0 +1,88 @@
+[Define]
+
+[Enddefine]
+
+// --- Test Case 1, tests NewL()
+
+[Test]
+title 1.CreateSorter
+create CVIMPSTStorageContactSorter_UT foobar
+foobar CreateSorter 
+delete foobar
+[Endtest] 
+
+// --- Test Case 2-3, tests SetSortAlgorithm()
+
+[Test]
+title 2.SelectAlgorithm
+create CVIMPSTStorageContactSorter_UT foobar
+foobar SelectAlgorithm 1 
+delete foobar
+[Endtest] 
+
+[Test]
+title 3.SelectAlgorithm
+create CVIMPSTStorageContactSorter_UT foobar
+foobar SelectAlgorithm 2 
+delete foobar
+[Endtest] 
+
+// --- Test Cases 4-6, tests Sort()
+
+[Test]
+title 4.DoSort
+create CVIMPSTStorageContactSorter_UT foobar
+foobar DoSort alpha
+delete foobar
+[Endtest] 
+
+[Test]
+title 5.DoSort
+create CVIMPSTStorageContactSorter_UT foobar
+foobar DoSort presence
+delete foobar
+[Endtest] 
+
+[Test]
+title 6.DoSort
+create CVIMPSTStorageContactSorter_UT foobar
+foobar DoSort default
+delete foobar
+[Endtest] 
+
+// --- Test Cases 7-11, Compare()
+
+[Test]
+title 7.CompareContacts 2 valid contacts
+create CVIMPSTStorageContactSorter_UT foobar
+foobar CompareContacts 2validcontacts
+delete foobar
+[Endtest] 
+
+[Test]
+title 8.CompareContacts 1 valid contact
+create CVIMPSTStorageContactSorter_UT foobar
+foobar CompareContacts 1validcontact
+delete foobar
+[Endtest] 
+
+[Test]
+title 9.CompareContacts 1 null contact
+create CVIMPSTStorageContactSorter_UT foobar
+foobar CompareContacts 1nullcontact
+delete foobar
+[Endtest] 
+
+[Test]
+title 10.CompareContacts 2 null contacts
+create CVIMPSTStorageContactSorter_UT foobar
+foobar CompareContacts 2nullcontacts
+delete foobar
+[Endtest] 
+
+[Test]
+title 11.CompareContacts same contacts
+create CVIMPSTStorageContactSorter_UT foobar
+foobar CompareContacts samecontacts
+delete foobar
+[Endtest]