public void GetAddress_ShouldReturnFiveResult() { DistanceCalculatorController controller = new DistanceCalculatorController(); List <Address> result = controller.Get(Constants.ADDRESSINPUT); Assert.AreEqual(result.Count, 5); }
public void GetAddress_ShouldReturnResult() { DistanceCalculatorController controller = new DistanceCalculatorController(); List <Address> result = controller.Get(Constants.ADDRESSINPUT); Assert.IsNotNull(result); }
public void GetAddress_ShouldReturnNearestResult() { DistanceCalculatorController controller = new DistanceCalculatorController(); List <Address> result = controller.Get(Constants.ADDRESSINPUT); var expectedResult = result.OrderBy(x => x.KM); Assert.IsTrue(expectedResult.SequenceEqual(result)); }