public void ExpectedDelayConstructorShouldSetPlatform() { HtmlDocument doc = new HtmlDocument(); doc.LoadHtml(Resources.Departures.ExpectedDelay); var departure = new ExpectedDelay(doc.DocumentNode.SelectSingleNode("/")); departure.Platform.Should().Be("2"); }
public void OnTimeConstructorShouldReturnCorrectStatusMessage() { HtmlDocument doc = new HtmlDocument(); doc.LoadHtml(Resources.Departures.ExpectedDelay); var departure = new ExpectedDelay(doc.DocumentNode.SelectSingleNode("/")); departure.StatusMessage.Should().Be("Delayed"); }
public void ExpectedDelayConstructorShouldSetExpectedDeparture() { HtmlDocument doc = new HtmlDocument(); doc.LoadHtml(Resources.Departures.ExpectedDelay); var departure = new ExpectedDelay(doc.DocumentNode.SelectSingleNode("/")); departure.ExpectedDeparture.Hour.Should().Be(17); departure.ExpectedDeparture.Minute.Should().Be(19); }