public void GivenNYToLondon_ThenTotalRouteCostShouldBe80() { var calculator = new DistanceCalculator(Locations); Assert.AreEqual(80,calculator.CalculateShortestDistance(new Route("New York", "London"))); Assert.AreEqual(80, calculator.CalculateShortestDistance("New York", "London")); }
public void GivenNYtoNY_ThenDistanceShouldBeZero() { var calculator = new DistanceCalculator(Locations); Assert.AreEqual(0,calculator.CalculateShortestDistance(new Route("New York", "New York"))); }
public void GivenDublinToNY_ThenDistanceShouldBe70() { var calculator = new DistanceCalculator(Locations); Assert.AreEqual(70, calculator.CalculateShortestDistance(new Route("Dublin", "New York"))); }