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"); }
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."); }
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); }