Ejemplo n.º 1
0
 public void OnTimeConstructorShouldSetPlatform()
 {
     HtmlDocument doc = new HtmlDocument();
     doc.LoadHtml(Resources.Departures.OnTime);
     var departure = new OnTime(doc.DocumentNode.SelectSingleNode("/"));
     departure.Platform.Should().Be("1");
 }
Ejemplo n.º 2
0
 public void OnTimeConstructorShouldReturnCorrectStatusMessage()
 {
     HtmlDocument doc = new HtmlDocument();
     doc.LoadHtml(Resources.Departures.OnTime);
     var departure = new OnTime(doc.DocumentNode.SelectSingleNode("/"));
     departure.StatusMessage.Should().Be("On Time");
 }
Ejemplo n.º 3
0
 public void OnTimeConstructorShouldSetTimetabledDeparture()
 {
     HtmlDocument doc = new HtmlDocument();
     doc.LoadHtml(Resources.Departures.OnTime);
     var departure = new OnTime(doc.DocumentNode.SelectSingleNode("/"));
     departure.TimetabledDeparture.Hour.Should().Be(11);
     departure.TimetabledDeparture.Minute.Should().Be(42);
 }