예제 #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");
 }
예제 #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");
 }
예제 #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);
 }