Example #1
0
 public void UnknownConstructorShouldReturnCorrectStatusMessage()
 {
     HtmlDocument doc = new HtmlDocument();
     doc.LoadHtml(Resources.Departures.UnknownDelay);
     var departure = new UnknownDelay(doc.DocumentNode.SelectSingleNode("/"));
     departure.StatusMessage.Should().Be("Delayed");
 }
Example #2
0
 public void UnknownDelayConstructorShouldSetTimetabledDeparture()
 {
     HtmlDocument doc = new HtmlDocument();
     doc.LoadHtml(Resources.Departures.UnknownDelay);
     var departure = new UnknownDelay(doc.DocumentNode.SelectSingleNode("/"));
     departure.TimetabledDeparture.Hour.Should().Be(13);
     departure.TimetabledDeparture.Minute.Should().Be(15);
 }