示例#1
0
 private static void GetDateAndRestOfInputFromInput(string input, ref string description, ref DateTime endDate)
 {
     DateTimeParser dateTimeParser = new DateTimeParser(input);
     endDate = dateTimeParser.GetDateTimeResult();
     if (endDate != GGItem.DEFAULT_ENDDATE)
     {
         description = dateTimeParser.GetRestOfInput();
     }
 }
示例#2
0
 public static void TestParser(string input, string expected, string message)
 {
     DateTimeParser dtParser = new DateTimeParser(input);
     DateTime dateTime = dtParser.GetDateTimeResult();
     Assert.AreEqual(expected, dateTime.ToString(), message);
 }
示例#3
0
 private bool NewInfoIsDate(string newInfoToChangeTo, out DateTime endDate)
 {
     DateTimeParser parser = new DateTimeParser(newInfoToChangeTo);
     endDate = parser.GetDateTimeResult();
     if (endDate != GGItem.DEFAULT_ENDDATE)
         return true;
     else
         return false;
 }