private static void EncodePolylinePartTest(string expected, string input) { var parts = input.SplitX('|'); var encoded = LinePathCollection.EncodePolyline(parts); Assert.AreEqual(expected, encoded); }
public void EncodeOnePart() { var sb = new StringBuilder(); var first = 0; LinePathCollection.EncodePolylinePart(sb, -179.9832104, ref first); var encoded = sb.ToString(); Assert.AreEqual("`~oia@", encoded); }