Exemplo n.º 1
0
 public void TransponderConstructorTest()
 {
     string stationName = string.Empty; // TODO: Initialize to an appropriate value
     int distance = 0; // TODO: Initialize to an appropriate value
     Transponder target = new Transponder(stationName, distance);
     Assert.Inconclusive("TODO: Implement code to verify target");
 }
Exemplo n.º 2
0
 public void StationNameTest()
 {
     string stationName = string.Empty; // TODO: Initialize to an appropriate value
     int distance = 0; // TODO: Initialize to an appropriate value
     Transponder target = new Transponder(stationName, distance); // TODO: Initialize to an appropriate value
     string actual;
     actual = target.StationName;
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
Exemplo n.º 3
0
 public void TrackBlockConstructorTest()
 {
     TrackOrientation orientation = TrackOrientation.EastWest;
     double length = 3.5;
     bool tunnel = false;
     bool railroadCrossing = false;
     Transponder transponder = new Transponder("Station1", 2);
     Point startPoint = new Point(0,0);
     TrackBlock target = new TrackBlock(orientation, length, tunnel, railroadCrossing, transponder, startPoint);
     Assert.AreEqual(orientation, target.Orientation);
     Assert.AreEqual(length, target.LengthMeters);
     Assert.IsFalse(target.HasTunnel);
     Assert.IsNotNull(target.Transponder);
     Assert.AreEqual("Station1", target.Transponder.StationName);
     Assert.AreEqual(2, target.Transponder.DistanceToStation);
     Assert.AreEqual(startPoint.X, target.StartPoint.X);
     Assert.AreEqual(startPoint.Y, startPoint.Y);
 }