public void Test_length_relationships(double metersX, double metersY, double metersLength) { var position = VectorPosition.FromMeters(metersX, metersY); position.MetersLength.IsSameOrEqualTo(metersLength); position.CentimetersLength.IsSameOrEqualTo(metersLength * 100); position.MillimetersLength.IsSameOrEqualTo(metersLength * 1000); }
public void Test_reachability(double metersX, double metersY, bool isReachable) { var position = VectorPosition.FromMeters(metersX, metersY); position.IsReachable.Should().Be(isReachable); }
public void Test_length_in_meters_correctness(double x, double y, double length) { VectorPosition.FromMeters(x, y).MetersLength.IsSameOrEqualTo(length); }