public void CoordinateTypeTest() { MapPoint mapPoint; var coordType = ProSymbolUtilities.GetCoordinateType("10SFF", out mapPoint); Assert.IsTrue(mapPoint != null, "MGRS coordinate is invalid, when it should be valid"); coordType = ProSymbolUtilities.GetCoordinateType("invalidpoint", out mapPoint); Assert.IsTrue(mapPoint == null, "MGRS coordinate is valid, when it should be invalid"); }
public void CoordinateTypeTest() { //TODO move initialize to main init method for unit tests Host.Initialize(); MapPoint mapPoint; var coordType = ProSymbolUtilities.GetCoordinateType("10SFF", out mapPoint); Assert.IsTrue(mapPoint != null, "MGRS coordinate is invalid, when it should be valid"); coordType = ProSymbolUtilities.GetCoordinateType("invalidpoint", out mapPoint); Assert.IsTrue(mapPoint == null, "MGRS coordinate is valid, when it should be invalid"); }