uiservicetab/vimpststorage/tsrc/vimpststorage_ut/conf/CVIMPSTStorageContactSorter_UT.cfg
changeset 0 5e5d6b214f4f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/uiservicetab/vimpststorage/tsrc/vimpststorage_ut/conf/CVIMPSTStorageContactSorter_UT.cfg	Tue Feb 02 10:12:18 2010 +0200
@@ -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]