public void TestNoWhere() { //Direction doesn't really matter as long as there are no overflows exceptions etc. var loc = new Coords(10.123, 10.123); var result = LocationToDirection.calcDirection(loc, loc); Assert.AreEqual(360, result); }
public void TestCalcLondonMoscow() { var source = new Coords(51.5074, 0.0); var dest = new Coords(55.7558, 37.6173); var result = LocationToDirection.calcDirection(source, dest); Assert.AreEqual(83.8782195858749, result); }