Ejemplo n.º 1
0
 public void ExpectedDelayConstructorShouldSetPlatform()
 {
     HtmlDocument doc = new HtmlDocument();
     doc.LoadHtml(Resources.Departures.ExpectedDelay);
     var departure = new ExpectedDelay(doc.DocumentNode.SelectSingleNode("/"));
     departure.Platform.Should().Be("2");
 }
Ejemplo n.º 2
0
 public void OnTimeConstructorShouldReturnCorrectStatusMessage()
 {
     HtmlDocument doc = new HtmlDocument();
     doc.LoadHtml(Resources.Departures.ExpectedDelay);
     var departure = new ExpectedDelay(doc.DocumentNode.SelectSingleNode("/"));
     departure.StatusMessage.Should().Be("Delayed");
 }
Ejemplo n.º 3
0
 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);
 }