Ejemplo n.º 1
0
 public void ConvertFromSunnyDay()
 {
     TimeRange expectedRange = new TimeRange(12, 9);
     TimeRange.TimeRangeTypeConverter vrtr = new TimeRange.TimeRangeTypeConverter();
     TimeRange range = (TimeRange) vrtr.ConvertFrom("[12-9]");
     Assert.AreEqual(expectedRange, range);
 }
Ejemplo n.º 2
0
 public void ConvertFromSunnyDayWithLotsOfExtraneousWhitespace()
 {
     TimeRange expectedRange = new TimeRange(12, 9);
     TimeRange.TimeRangeTypeConverter vrtr = new TimeRange.TimeRangeTypeConverter();
     TimeRange range = (TimeRange) vrtr.ConvertFrom("[ 12 - 9 ]");
     Assert.AreEqual(expectedRange, range);
 }
Ejemplo n.º 3
0
		public TripPoint(string airportCode, DateTime date, TimeRange timeRange)
		{
			this.airportCode = airportCode;
			this.date = date;
			this.timeRange = timeRange;
		}