public void UnknownConstructorShouldReturnCorrectStatusMessage() { HtmlDocument doc = new HtmlDocument(); doc.LoadHtml(Resources.Departures.UnknownDelay); var departure = new UnknownDelay(doc.DocumentNode.SelectSingleNode("/")); departure.StatusMessage.Should().Be("Delayed"); }
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); }