public void ParseCoordinates_Valid(string text, int expectedLatitude, int expectedLongitude) { int[] actual = TzdbZoneLocationParser.ParseCoordinates(text); Assert.AreEqual(expectedLatitude, actual[0]); Assert.AreEqual(expectedLongitude, actual[1]); }
public void ParseCoordinates_InvalidLength() { Assert.Throws <ArgumentException>(() => TzdbZoneLocationParser.ParseCoordinates("-77+166")); }