public void GetTurnWeightNames_DatasetNameIsEmpty() { try { NetworkAnalyst networkAnalyst = new NetworkAnalyst("http://" + ip + ":8090/iserver/services/transportationanalyst-sample/rest"); List<string> turnWeightNames = networkAnalyst.GetTurnWeightNames(""); } catch (ArgumentNullException exception) { Assert.IsTrue(exception.ParamName == "networkDatasetName"); } }
public void GetTurnWeightNames() { NetworkAnalyst networkAnalyst = new NetworkAnalyst("http://" + ip + ":8090/iserver/services/transportationanalyst-sample/rest"); List<string> turnWeightNames = networkAnalyst.GetTurnWeightNames("RoadNet@Changchun"); Assert.IsNotNull(turnWeightNames); Assert.IsTrue(turnWeightNames.Count == 1); Assert.IsTrue(turnWeightNames[0] == "TurnCost"); }