public void HasConnectionFalseStringStringString() { Subway subway = new Subway(); const string lineName = "Rock Island Line"; const string station1 = "Station 1"; subway.AddStation(station1); const string station2 = "Station 2"; subway.AddStation(station2); subway.AddConnection(station1, station2, lineName); Assert.IsFalse(subway.HasConnection("x", station2, lineName)); }
private bool validateConnections(Subway subway) { return(subway.HasConnection("Meyer Line", "DRY Drive", "Head First Theater") && subway.HasConnection("Wirfs-Brock Line", "Weather-O-Rama, Inc.", "XHTML Expressway") && subway.HasConnection("Rumbaugh Line", "Head First Theater", "Infinite Circle")); }