Exemplo n.º 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();
     }
 }
Exemplo n.º 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);
 }
Exemplo n.º 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;
 }