Exemplo n.º 1
0
 private static void AddOriginalDataToList(GGList originalList)
 {
     for (int i = 0; i < originalData.Length / 3; i++)
     {
         GGItem item = new GGItem(originalData[i, 0], DateTime.Parse(originalData[i, 1], usCulture), originalData[i, 2]);
         originalList.AddGGItem(item);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Creates the expected list for the test cases. If index is out of bounds, don't
 /// bother to modify the list
 /// </summary>
 /// <param name="expectedList"></param>
 /// <param name="itemIdToChange"></param>
 /// <returns></returns>
 private static GGList CreateExpectedList(GGList expectedList, string expectedDesc, string expectedTag, DateTime expectedDate)
 {
     AddOriginalDataToList(expectedList);
     string desc = string.Empty;
     string tag = string.Empty;
     DateTime date = GGItem.DEFAULT_ENDDATE;
     if (expectedDesc == null)
         return expectedList;
     desc = expectedDesc;
     if (expectedTag != null)
         tag = expectedTag;
     if (expectedDate != GGItem.DEFAULT_ENDDATE)
         date = expectedDate;
     expectedList.AddGGItem(new GGItem(desc, date, tag));
     return expectedList;
 }