public void DepartureConstructorShouldSetPlatform() { HtmlDocument doc = new HtmlDocument(); doc.LoadHtml(Resources.Departures.OnTime); var departure = new Departure(doc.DocumentNode.SelectSingleNode("/")); departure.Platform.Should().Be("1"); }
public void DepartureConstructorShouldSetTimetabledDeparture() { HtmlDocument doc = new HtmlDocument(); doc.LoadHtml(Resources.Departures.OnTime); var departure = new Departure(doc.DocumentNode.SelectSingleNode("/")); departure.TimetabledDeparture.Hour.Should().Be(11); departure.TimetabledDeparture.Minute.Should().Be(42); }