Ejemplo n.º 1
0
 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")}");
 }
Ejemplo n.º 2
0
        public void ParameterValueFormat(int id, LinkDirection dir, string expected)
        {
            LinkId l = new LinkId(id, dir);

            Assert.AreEqual(expected, l.GetAttributeValue());
        }