public override string GetAttributeValue() { return($"link!" + $"{(Type != null ? EnumHelper.GetDescription(Type) : "")}" + $"{(Type == WaypointType.StopOver ? $",{StopOverDuration}" : "")}" + $"{(Type != null ? "!" : "")}" + $"{(DisplayPosition != null ? DisplayPosition.GetAttributeValue() : "")};" + $"{(UserLabel != null ? $"{UserLabel}" : "")};" + $"{LinkId.GetAttributeValue()},{(Spot != float.NaN ? $"{Spot.Value.ToString(HereAPISession.Culture)}" : "0.5")}"); }
public void ParameterValueFormat(int id, LinkDirection dir, string expected) { LinkId l = new LinkId(id, dir); Assert.AreEqual(expected, l.GetAttributeValue()); }