public void testParseRtsTime() { Assert.That(DateTime.Today.Add(new TimeSpan(23, 59, 00)).Equals(LiveArrivalFetcher.parseRtsTime("11:59 PM"))); //Assert.That(DateTime.Now.AddMinutes(1.0).Equals(LiveArrivalFetcher.parseRtsTime("DUE"))); //Assert.That(DateTime.Now.AddMinutes(2).Equals(LiveArrivalFetcher.parseRtsTime("1 min(s)"))); }
public void SetUp() { fetcher = new LiveArrivalFetcher(new BusStop("Colony Manor", 3382, new MonoTouch.CoreLocation.CLLocation(40, -70))); }